3 ms·
Canvas is a vector drawing API. Scaling a drawing to retina resolution or 300 DPI for printing is trivial. Ultimately if you want to draw truly giant giant dat
by modeless 13y ago
Canvas is a vector drawing API. Scaling a drawing to retina resolution or 300 DPI for printing is trivial.
Ultimately if you want to draw truly giant giant data sets, you need WebGL. What's missing isn't a new browser drawing API, but a good WebGL charting library.
- skavish 13y agoI second that. you can model all your vectors pretty trivially just using existing canvas api.
- juriga 13y agoTwo.js[1] has a WebGL renderer and abstractions for basic vector graphics and polygons. I haven't had the chance to use it in a project yet but it seems promising. Two.js could even be used as a basis for a WebGL charting library (thus providing another layer of abstraction). [1] http://jonobr1.github.io/two.js/ http://jonobr1.github.io/two.js/
- kodisha 13y agoThanks, that sounds really promising, will give it a try!
- oscargrouch 13y agoCanvas is ok, i also first tought on GL to solve that sort of problem.. But speaking of it, canvas has a sort of a bad api design and its not very optimized for GPU, you know.. beginRender() ... swapBuffers() endRender() Since Adobe is now on the HTML side of things, I wonder if they could propose a good api, or at least try to make a optimized api version of the canvas.. as this is definetly their domain.. Also i remember to see a proposal for a more mature path api from that guy behind Gallium, Years ago .. Zac Riusin(or something) that looked promissing..