3 ms·
Use canvas if performance is important. Use SVG if it's important to assign functionality to specific graphical elements (as opposed to rolling your own hit det
by adrianh 11y ago
Use canvas if performance is important. Use SVG if it's important to assign functionality to specific graphical elements (as opposed to rolling your own hit detection). See my comment above in this thread for more.
[Usual caveats apply...this is general advice, and I don't know your situation, etc.]