Skip to content

Instantly share code, notes, and snippets.

@oquno
Last active November 21, 2020 19:57
Show Gist options
  • Save oquno/2d8b21a403cf6824bd46482beeadb57f to your computer and use it in GitHub Desktop.
Save oquno/2d8b21a403cf6824bd46482beeadb57f to your computer and use it in GitHub Desktop.
name card for Pixl.js
require('Font8x12').add(Graphics);
g.clear();
g.setFontVector(20);
g.drawString("oquno", 62, 10);
g.setFont8x12();
g.drawString("http://oq.la", 62, 35);
g.setFontVector(9);
g.drawString("07064591176", 62, 48);
var image = {
width:60,height:75,bpp:1,transparent:0,
buffer: new Uint8Array([
0,1,128,0,0,0,0,0,1,255,128,0,0,0,0,0,127,255,0,0,0,0,0,31,255,252,0,0,0,0,3,255,255,240,0,0,0,0,127,255,255,192,0,0,0,15,255,255,255,128,0,0,0,255,255,255,254,0,0,0,31,255,255,255,240,0,0,3,255,255,255,255,192,0,0,127,255,255,255,255,0,0,7,255,255,143,255,252,0,0,255,255,192,31,255,248,0,15,255,240,0,255,255,254,0,255,254,0,3,255,255,248,15,255,192,0,15,255,255,192,255,248,24,14,127,255,254,15,255,135,193,243,255,255,240,255,240,124,31,31,255,255,143,255,7,193,240,255,255,248,255,240,56,15,15,255,255,207,255,0,0,0,127,255,252,255,240,0,0,7,255,255,239,255,0,0,0,127,255,254,255,248,0,0,7,255,255,239,255,128,0,0,127,255,255,255,248,0,0,7,255,255,255,255,128,0,0,127,255,255,127,252,0,0,7,255,255,247,255,224,112,0,127,255,255,127,254,7,224,7,255,255,247,255,224,124,0,255,255,255,127,255,0,0,31,255,255,247,255,252,0,7,255,255,255,127,255,252,3,255,255,255,247,255,255,255,255,255,255,255,127,255,255,255,255,255,255,247,255,255,255,255,255,248,127,127,255,255,255,255,255,135,247,255,255,255,255,231,251,191,127,255,255,255,254,127,187,247,255,255,255,31,215,187,191,127,254,3,233,109,183,199,247,255,239,156,150,217,127,255,127,254,253,217,109,151,255,247,255,239,221,148,248,255,255,127,254,253,193,143,143,255,247,255,247,222,31,253,255,254,127,255,125,249,255,255,255,231,255,247,223,159,255,255,254,127,255,189,249,255,255,255,199,255,253,63,223,255,255,252,127,255,255,253,255,255,255,135,255,255,255,223,255,255,248,127,255,255,255,255,255,255,3,255,255,255,255,255,255,224,63,255,255,255,255,255,254,3,255,255,255,255,255,255,192,63,255,255,255,255,255,248,3,255,255,255,255,255,255,0,63,255,255,255,255,255,224,3,255,255,255,255,255,252,0,63,255,255,255,255,255,0,3,255,255,255,255,255,192,0,63,255,255,255,255,224,0,1,255,255,255,255,240,0,0,31,255,255,255,240,0,0,1,255,255,255,252,0,0,0,31,255,255,254,0,0,0,0,255,255,255,0,0,0,0,15,255,255,192,0,0,0,0,127,255,240,0,0,0,0,7,255,248,0,0,0,0,0,63,254,0,0,0,0,0,0,255,0,0,0,0,0,0
]).buffer
};
g.drawImage(image);
g.flip();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment