Coder Social home page Coder Social logo

analogue-pocket-image-process's Introduction

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

analogue-pocket-image-process's People

Contributors

agg23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hallem

analogue-pocket-image-process's Issues

node:internal/errors:490

Maybe I'm just stupid, but my Node.js is fully updated, and I still get this error when trying to use it. Any help is appreciated.

wtf

(Also, I didn't see anywhere in the ReadMe where Node js was a prerequisite, so that would be useful information for new users.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.