master
Gordon Williams 2022-04-25 14:34:49 +01:00
parent dac9410b04
commit b7817ae825
3 changed files with 19 additions and 1 deletions

View File

@ -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

BIN
apps/kbswipe/key.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -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) {