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

Is there a vector-graphics language that similar to CSS in capabilities and expressive power, but with a more approachable syntax?

I think it's very cool when an image is created in essence programmatically, this really speaks to me as a developer, and I certainly appreciate the declarative nature of CSS, but I wish for something that is easier to read, and so easier to maintain over time, including source control with branches/merges etc. An added bonus to such language would be ability to compile it down to CSS, or Objective-C/UIKit, or C#/Windows, or simply render it to static bitmaps...

As someone who doesn't know CSS, I see it similar to the way I see PERL - you can do cool things, but I wouldn't know where to start if I had to change anything, except by trying all things at random.



SVG sounds pretty much like what you're looking for.

Single element CSS hacks like this are impressive demonstrations of technical knowledge, but it was never meant to be used like this.


SVG also has "up and coming" full support in most browsers and you can use compatibility wrappers such as http://raphaeljs.com/


Thanks, this might be it. iOS library:

https://github.com/adamgit/SVGKit/tree/transforms




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

Search: