Created
January 9, 2020 06:15
-
-
Save rozek/6ca21b4613c12b0f3218c2b2e46fef87 to your computer and use it in GitHub Desktop.
Bangle.js: creates a bitmap from ASCII art
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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