Simple spite/mas maker, and display emulator webpages

This here’s a simple sprite/mask maker that outputs the data in the vertical format used by the Arduboy’s OLED:

Here’s an OLED emulator - you write your pixels to the JavaScript OLED-RAM array, and the animation loop draws them to the webpage canvas screen nice and fast. The data is in stripes of 8 vertical pixels just like the OLED panel.
I used it for making up some fast sprite drawing routines in JavaScript that can be re-written in C with very minimal changes. (variable data types need to be precise in C)

3 Likes

Nice work. Can you change the output to be a typical image declaration like below? It would make it much more useful.

const uint8_t PROGMEM image[] = {
  16, 16,
  16, 56, 56, 104, 120, 120, 254, 199, 254, 120, 120, 104, 56, 56, 16, 1,
  0, 0, 0, 0, 32, 48, 51, 127, 51, 48, 32, 0, 0, 0, 128, 192,
};
1 Like