diff --git a/apps/kbswipe/README.md b/apps/kbswipe/README.md index 1a402a9f3..3f5575777 100644 --- a/apps/kbswipe/README.md +++ b/apps/kbswipe/README.md @@ -4,6 +4,7 @@ A library that provides the ability to input text by swiping PalmOS Graffiti-sty To get a legend of available characters, just tap the screen. +![](key.png) ## Usage diff --git a/apps/kbswipe/key.png b/apps/kbswipe/key.png new file mode 100644 index 000000000..c5ed9bb9b Binary files /dev/null and b/apps/kbswipe/key.png differ diff --git a/apps/kbswipe/lib.js b/apps/kbswipe/lib.js index a5e2a9ff4..417ac98d9 100644 --- a/apps/kbswipe/lib.js +++ b/apps/kbswipe/lib.js @@ -82,6 +82,24 @@ exports.getStrokes( (id,s) => Bangle.strokes[id] = Unistroke.new(s) ); g.drawString(l.join("\n"),R.x+4,R.y+4); } + /* + // This draws a big image to use in the README + (function() { + E.defrag(); + var b = Graphics.createArrayBuffer(500,420,1,{msb:true}); + var n=0; + exports.getStrokes((id,s) => { + var x = n%6; + var y = (n-x)/6; + s = b.transformVertices(s, {scale:0.55, x:x*85-20, y:y*85-20}); + b.fillCircle(s[0],s[1],3); + b.drawPoly(s); + n++; + }); + b.dump(); + })() + */ + function show() { g.reset(); g.clearRect(R).setColor("#f00"); @@ -94,7 +112,6 @@ exports.getStrokes( (id,s) => Bangle.strokes[id] = Unistroke.new(s) ); g.drawPoly(s); n++; }); - } function strokeHandler(o) {