Skip to content

Instantly share code, notes, and snippets.

@rozek
Created January 9, 2020 06:15
Show Gist options
  • Save rozek/6ca21b4613c12b0f3218c2b2e46fef87 to your computer and use it in GitHub Desktop.
Save rozek/6ca21b4613c12b0f3218c2b2e46fef87 to your computer and use it in GitHub Desktop.
Bangle.js: creates a bitmap from ASCII art
Bangle.setLCDMode();
g.clear();
const Width = g.getWidth(), CenterX = Width/2;
const Height = g.getHeight(), CenterY = Height/2;
let Image = Graphics.createImage(`
**
**
******
******
**
**
`);
g.drawImage(Image,CenterX-3,CenterY-3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment