- Notifications
You must be signed in to change notification settings - Fork15
Oekaki-style painter app in JavaScript
License
desuwa/tegaki
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Painter app in JavaScript.
Notes on tablet support:
- Pen pressure works on Linux with google chrome. But doesn't work with firefox
- Firefox users on Windows need to set
dom.w3c_pointer_events.dispatch_by_pointer_messages
totrue
inabout:config
to fix scrolling issues and enable pressure support
Tegaki.open({// when the user clicks on FinishonDone:function(){varw=window.open('');// Tegaki.flatten() returns a <canvas>Tegaki.flatten().toBlob(function(b){w.location=URL.createObjectURL(b);},'image/png');},// when the user clicks on CancelonCancel:function(){console.log('Closing...')},// initial canvas sizewidth:380,height:380});
It's possible to generate animated replays of drawings alongside the image itself.
To do so, pass thesaveReplay: true
parameter to Tegaki.open.
To get the replay data, callTegaki.replayRecorder.toBlob()
in youronDone
callback.
To watch a replay, start tegaki.js in replay mode:
Tegaki.open({replayMode:true,replayURL:'https://path/to/replay.tgkr'// Store replay files preferably with the .tgkr extension});
Pre-built releases arehere.
To build from source yourself:rake concat
will concatenate JS source files to producetegaki.jsrake minify:js
will compresstegaki.js to producetegaki.min.js
TheTEGAKI_LANG
environment variable controls which translation file will be used during concatenation:rake concat TEGAKI_LANG=xx
would use strings fromjs/strings/xx.js
To build without replay support:rake concat TEGAKI_NO_REPLAY=1
About
Oekaki-style painter app in JavaScript
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.