alloyteam / curvejs Goto Github PK
View Code? Open in Web Editor NEWMade curve a dancer in HTML5 canvas - 魔幻线条
Home Page: https://alloyteam.github.io/curvejs/
Made curve a dancer in HTML5 canvas - 魔幻线条
Home Page: https://alloyteam.github.io/curvejs/
代码如下:
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 会不会出现问题还未知。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.