Support SVG animation

Support SVG animation
0.0 0


I found information that Cocos Creator 1.2 supports SVG vector format including static and animated graphics, but I have not found an example of using this feature.

How to use the svg in a Cocos Creator??
Thanks in advance for your reply :slight_smile:


Anyone?? :worried:


There’s no official support in cocos for svg.
Only community aid is present but for c++ here


Graphics Drawing System
From Creator v0.7 to v1.1, the beloved cc.DrawNode API were always absent. In v1.2 let’s welcome cc.Graphics, a superior, fully upgraded version of graphic drawing API system. Besides covering all of cc.DrawNode’s functionality, cc.Graphics supports SVG vector format including static and animated graphics. You can get tens of thousands shared vector graphics from internet to spice up your game (be sure to check their license)! It’s also great for procedure graphic fans, let’s get started now!


But here it is said that cc.Graphics supports SVG vector format including animated graphics… Is it not so?


Maybe I should use some third-party library in Cocos Creator?


Anyone… :worried:


Sorry, my mistake. I seem to have forgotten that. :confused:
I think you can go ahead with cc.Graphic then…


cc.Graphic includes only functions of drawing primitives and has no functions to work with SVG format. It is interesting that there is no working example. Really in the release note we were deceived? hm.

#9 is showing code by code to manually code ourselves the drawing, as cookybreeed said are we really decieved?