Skip to content

Prepares and extract bitmaps for Analogue Pocket platform images

License

Notifications You must be signed in to change notification settings

agg23/Analogue-Pocket-Image-Process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analogue Pocket Framework Image Processor

Simple image processing for APF platform images.

Analogue platform image demo

Creation

The creation script converts a 521x165 PNG image into a 16 bit greyscale bitmap, where the upper byte stores the brightness of the pixel, where white is 0x00 and black is 0xFF. At the moment, the lower byte is always 0x00. This image is stored rotated 90 degrees counter-clockwise (creating a resolution of 165x521).

To prepare an image for display on the Pocket:

  1. Create a 521x165 greyscale image (transparent pixels will be converted into white)
  2. Save image as PNG
  3. Run:
npm run create input.png <platform name>.bin
  1. Place this image in the appropriate platform folder in the /Platforms/_images/. See the Analogue docs for more information

Extraction

Extracting an existing platform image will invert the color (back to what it started as) and revert the 90 degree rotation performed during creation.

To extract a previously created APF platform image, run:

npm run extract input.bin output.png

About

Prepares and extract bitmaps for Analogue Pocket platform images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published