Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140042

HTML5 Canvas ~ Smooth Rapid Scaling with Drawn Elements, Not Images ~ How to?

$
0
0

There are some posts on scaling images (e.g., HTML5 Canvas Image Scaling Issue); however, I need to gain insight on rapidly scaling hundreds of simple drawn elements (squares, lines, arcs, etc.) in a smooth fashion. I want it to look like an animation and right now with mouse wheel zoom (scaling in 0.05 increments) the transitions are choppy.

There is an interesting insight at Optimizing Canvas which suggests pre-rendering on an off screen canvas, but this may cause memory issues in the browser (we are already pushing the limits).

Here is an example of an engineering schematic with hundreds of drawn elements: enter image description here

Thx!


Viewing all articles
Browse latest Browse all 140042

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>