Skip to content

Prepares and extract bitmaps for Analogue Pocket platform and author icon images

License

Notifications You must be signed in to change notification settings

hallem/Analogue-Pocket-Image-Process

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analogue Pocket Framework Image Processor

Simple image processing for APF platform and author icon images.

Creation

The creation script converts a 521x165 platform image or a 36x356 author icon 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 a platform image for display on the Pocket:

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

To prepare an author icon image for display on the Pocket:

  1. Create a 36x36 greyscale author icon image (transparent pixels will be converted into white)
  2. Save image as PNG
  3. Run:
npm run create input.png icon.bin
  1. Place this image in the appropriate core folder in the Cores/<core_name>/.

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 platform input.bin output.png

To extract a previously created APF author icon image, run:

npm run extract icon input.bin output.png

Links & Samples

See the Analogue docs for more information

Analogue platform image demo

Analogue author image demo

About

Prepares and extract bitmaps for Analogue Pocket platform and author icon images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%