Painter app in JavaScript.
Notes on tablet support:
- Pen pressure doesn't work on Linux
- Firefox users on Windows need to set
dom.w3c_pointer_events.dispatch_by_pointer_messagestotrueinabout:configto fix scrolling issues and enable pressure support
Tegaki.open({
// when the user clicks on Finish
onDone: function() {
var w = window.open('');
// Tegaki.flatten() returns a <canvas>
Tegaki.flatten().toBlob(
function(b) { w.location = URL.createObjectURL(b); },
'image/png'
);
},
// when the user clicks on Cancel
onCancel: function() { console.log('Closing...')},
// initial canvas size
width: 380,
height: 380
});Pre-built releases are here.
To build from source yourself:
rake concat will concatenate JS source files to produce tegaki.js
rake minify:js will compress tegaki.js