Just a 'canvas like' tactile graphic drawing library.:octocat:
日本語:https://github.com/HirotsuguKaga/tactileGraph.js/blob/master/README_ja.md
Gh-Pages & DEMO: https://hirotsugukaga.github.io/tactileGraph.js/
ECMA-262 3rd edition or above.
<script src="tactileGraph.js"></script>
or
<script src="tactileGraph.min.js"></script>
ex.
var tg = tactileGraph("canvas", "A4", "edl"); //initial. tactileGraph("[id]","[paper size]", "[EDL or EDI]")
tg.drawBraille("ABCDEF", 0, 10); //drawing
tg.drawLine(0,20,50,20);
hoge.href = tg.map2esa(); //output
return next letter position ([x, y]).
set a canvas ID for screen preview(option).
set paper size(A4, B5, IJB6, IJB5, IJA4, IJB4, & IJA3).
set a distance between dots in a line. (strokeCircle(), drawLine(), strokeRect, etc.)
set dot interval adjustment from start position to end position.
set dot size. 0: small, 1: middle, 2: large. ####setLetterSize(LineHeight, Width, Height, Inter-character); default is (30,6,7,15).
set dot color on preview.
return string.
return PNG.
return array.
Just a 'canvas like' tactile graphic drawing library.:octocat:
日本語:https://github.com/HirotsuguKaga/tactileGraph.js/blob/master/README_ja.md
Gh-Pages & DEMO: https://hirotsugukaga.github.io/tactileGraph.js/
ECMA-262 3rd edition or above.
<script src="tactileGraph.js"></script>
or
<script src="tactileGraph.min.js"></script>
ex.
var tg = tactileGraph(id, "A4"); //initial
tg.drawBraille("ABCDEF", 0, 10); //drawing
tg.drawLine(0,20,50,20);
hoge.href = tg.map2esa(); //output
set a canvas ID for screen preview(option).
set paper size(A4 or B5).
set a distance between dots in a line. (strokeCircle(), drawLine(), strokeRect, etc.)
return string.
return PNG.
return array.
return converted string.
origin/gh-pages