4 ms·
In iKe's case, the output of draw is used by JavaScript to render to an HTML5 Canvas tag. https://github.com/JohnEarnest/ok/blob/gh-pages/ike/ike.html#L472 htt
by RodgerTheGreat 11y ago
In iKe's case, the output of draw is used by JavaScript to render to an HTML5 Canvas tag.
https://github.com/JohnEarnest/ok/blob/gh-pages/ike/ike.html#L472 https://github.com/JohnEarnest/ok/blob/gh-pages/ike/ike.html...
"draw" specifically returns a list of tuples which each consist of a position (or a vector of positions), a palette of colors and then a single pixel, a vector of pixels or a matrix of pixels. (Call it a rank 0, 1 or 2 bitmap, if you like.)