Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do you draw an image on a canvas without JS?


You don’t. My point is: After drawing, the canvas is “inert”. Rendering to the canvas once is probably more or less as expensive as rendering the SVG once. However, the SVG will probably be rendered a lot more than once. The page developer cannot control it either, the browser decides what’s best.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: