GithubHelp home page GithubHelp logo

duyquangnvx / cocossvg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from supersuraccoon/cocossvg

0.0 0.0 0.0 4.3 MB

A Cocos2d-JS v3.9 based SVG Path Parser (create cc.Sprite).

JavaScript 0.75% C++ 98.31% Python 0.17% Objective-C 0.09% Java 0.05% Objective-C++ 0.26% Makefile 0.02% HTML 0.04% CMake 0.31%

cocossvg's Introduction

CocosSVG

A live demo is here.

A Cocos2d-JS v3.9 based SVG Path Parser with following features:

  • Create cc.Sprite from SVG path command
  • Create cc.Sprite from SVG file
  • Support Filled Color
  • Supported cmd
    • (OK) M moveto (x y)+
    • (OK) Z closepath (none)
    • (OK) L lineto (x y)+
    • (OK) H horizontal lineto x+
    • (OK) V vertical lineto y+
    • (OK) C curveto (x1 y1 x2 y2 x y)+
    • (OK) S smooth curveto (x2 y2 x y)+
    • (NO) Q Quadratic Bézier curveto (x1 y1 x y)+
    • (NO) T smooth quadratic Bézier curveto (x y)+
    • (NO) A elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y)+
    • (NO) R Catmull-Rom curveto* x1 y1 (x y)+

Note:

Need to add some missing Glue functions to the JSBinding source code. Refer to the files in framework/cocos2d-x/... and search for supersuraccoon.

The project is JSBinding supported but there is still problems left in concave shape color filling with Cocos2d-x.

cocossvg's People

Contributors

supersuraccoon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.