davisml
Joined 17 years ago
Joined 17 years ago
One of the components of the application I worked on was a text editor that resembled Apple's Pages software. The text editor was implemented entirely in canvas and would wrap live in response objects intersecting the text. Redrawing the text live was slow but we ended up finding a solution. We cached bitmaps of the characters, lines and paragraphs and only re-rendered areas of the canvas that changed.
The code was open sourced and put on GitHub, if anyone is interested:
https://github.com/austinsarner/Frappuccino/tree/master/Frap...
P.S. There's also a really fast iPhoto-style media browser in the repository that is implemented in canvas. It uses image caching techniques for animation.
"Don't tell me what you're going to do. Show me what you've done."
This website feels like it's trying to get my email by reiterating an idea that was discussed on HN already.