absecrist / sb2-js

Automatically exported from code.google.com/p/sb2-js
0 stars 0 forks source link

Rasterise SVGs at multiple sizes #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now they're just generated at 1x size, whereas the purpose of adding them 
in 2.0 was to have images with infinite quality. Since canvas has a problem 
with rendering svg, calling it "cross domain", here's my solution:

At project load, generate 1x, 2x, 3x and 4x versions of a sprite. If it needs a 
greater size, generate them in realtime (for example, if I implement a full 
screen mode)

Original issue reported on code.google.com by rhy3alte...@gmail.com on 3 Jun 2012 at 1:24