Hacker News new | ask | show | jobs
by massifist 919 days ago
I just switched over to SVGs from bitmap images. I was using PNG images for different icons which worked fine until I had to upscale to higher resolutions. The SVGs work great and are probably smaller too (depending on the complexity).

I want to render them to a canvas with different (dynamic) color configurations and I'm exploring different ways to do this.

1 comments

Why not make the CSS dynamic? Or even manipulate the SVG itself in script? D3 has been doing the latter for a long time.
Yes, that's what I wanted to do, change the CSS values (based on ids, I guess).

I'm pretty sure I've heard of D3, I'll have to check it out. Thanks.