Daniel's Stuff

I write code

SVG

I’ve been looking into making some software with my daughter.  She wants to make a game with some characters she has drawn, so I need a nice way to render them.  I want to make them using vector graphics, but iOS doesn’t really have a nice way of doing that.  What I am in the process of doing is making a little command line tool that converts SVG files into CoreGraphics calls.

The code can be found here on github
This is a sample of the output of the tool.  I have seen several other tools that convert the SVG paths to CoreGraphics calls, but nothing that will actually render the whole file including colours and fills.  It is still very rough and doesn’t handle things like gradient fills, but for a quick hack it is working pretty well.

1 comment for “SVG

  1. dendad
    October 8, 2012 at 1:51 am

    I will be interested to see what she comes up with, Daniel.

Leave a Reply

Your email address will not be published. Required fields are marked *