Converting SVG to HTML5 Canvas and extensions folder
Hello!
I'm Karlisson Bezerra, from Brazil. I use Inkscape since 2005, to draw comics and other stuff: http://hacktoon.com
Some time ago I started developing an extension to convert SVG to HTML5 Canvas, ca to provide Inkscape the hability to generate Canvas graphics without having to write Javascript code. You can see the roadmap on the Github page, and check on the progress of the project:
https://github.com/karlisson/ink2canvas
This was my final graduation work and I'd like to hear from you about it. My friend Felipe Sanches granted me write permission to the repository but I still not updated the code there with the last commits in Github.
Note: I have already two submissions to Inkscape project. The first was the Split Text extension that is already deployed on the last releases.
I have some good plans for the future of this extension, and it will get even more useful when Inkscape support SVG animation. For now, I want to create a framework for generating objects that encapsulates the code produced by the extension and can be invoked any time. This can be used in games for drawing characters and stuff. For you who programmed in Flash Actionscript, this would be a rough prototype of a "MovieClip" object.
Also, I'd like to ask something: this extension needed more than one file because of its complexity. But, just putting all files in the extensions folder would scatter them, and this isn't an organized solution. This is what is happening today.
My solution to this problem was copying the inkex.py and other Inkscape modules to the lib folder in my project, so people won't have to do nothing to test the extension. Actually I'd like to know if we could organize the extensions folder by putting each one in its own folder. Inkscape would read the folder the same way it reads an INX file. An extension would be recognized only if it would have an INX inside of the folder.
That's all, folks :D
participants (1)
-
Karlisson Bezerra