Coder Social home page Coder Social logo

alloyteam / curvejs Goto Github PK

View Code? Open in Web Editor NEW
1.3K 49.0 133.0 582 KB

Made curve a dancer in HTML5 canvas - 魔幻线条

Home Page: https://alloyteam.github.io/curvejs/

HTML 9.71% JavaScript 90.29%
curvejs canvas bezier animation curve dance dancer

curvejs's People

Contributors

cococe avatar out0fmemory avatar pspgbhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

curvejs's Issues

多个 Word 实例第一个参数相同时,motion.dance 的阴影绘制错误

代码如下:

stage.add(new Word('s',{
  color: util.randomColor(),
  x:0,
  motion: motion.dance,
  data: {angle: 0, r:5 ,step:Math.PI / 50 }
}))

stage.add(new Word('s',{
  color: util.randomColor(),
  x:60,
  motion: motion.dance,
  data: {angle: 0, r:10 ,step:Math.PI / 50 }
}))

新建两个 Word 实例,第一个参数相同,会出现两个实例motion 的阴影错位,
第一个实例motion的阴影绘制在了第二个实例下,第二个实例motion阴影绘制在了第一个实例下。

仅观察了motion 为 motion.dance 的情况,其他 motion 会不会出现问题还未知。

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.