PySoy: Texture SVG by String
completed by: Samuel Kim
mentors: Amaury Medeiros, Arc Riley, Tony Young, David Czech, Mayank Singh
Currently Texture has 3 options for loading: png filename, svg filename, or pattern name. Add an additional option - SVG as a string.
This will be matched by the first character being a "<", which no filename or pattern name should ever be. From there, the existing SVG loading code can be largely used with the change of loading from a string instead of a file, and the code to convert a Python unicode or byte string to C char* can be found in many places.
Write a small example (or update an existing one) to create a polkadot texture using a multiline Python string containing SVG. You can draw this in Inkscape and then simplify it to just whats required to draw a few circles.
While working on this task you should join and remain in #PySoy on Freenode to get help, feedback, and guidance from mentors and other developers. Code updates which may affect your work are also announced here as they happen.
When you've done, commit your work and post the resulting changeset url to this task.