supperjet / h5-animation Goto Github PK
View Code? Open in Web Editor NEWThe canvas animation effect.
The canvas animation effect.
HTML和js语法早忘光了
鼠标跟随那个;当箭头在原地时,箭头不停地来回变换方向,这是个bug;解决方案。在arrow.x += vx;这一句之前加上if(Math.abs(dx) < speed && Math.abs(dy) < speed){vx = 0;vy = 0;}
当然这是在speed数值较小时,较大时我也暂时不知道怎么做,希望有高人指点。
《每周一点canvas动画》——桌球运动(2)
http://supperjet.github.io/2016/08/01/%E3%80%8A%E6%AF%8F%E5%91%A8%E4%B8%80%E7%82%B9canvas%E5%8A%A8%E7%94%BB%E3%80%8B%E2%80%94%E2%80%94%E6%A1%8C%E7%90%83%E8%BF%90%E5%8A%A8-2/
这篇文章的图全都挂了,segmentfault的文章也删了,能不能补充上图片
三角函数与动画/rotate-to-mouse.html 看这个文件时候 发现RotationToMouse,找了一下才知道在 utils.js 里面,博主可以把RotationToMouse 作为utils的一个属性,这样看起来稍微好点
大神你好!感谢你的教程!我从第一篇一直学到万有引力,非常有帮助!不过我在桌球运动这一篇发现一个bug,有时候小球在碰撞的时候会融合在一起,然后就满屏幕乱跑,我以为是我的代码问题,但是我用了你的代码文件也一样会出现这个问题,尤其是小球比较多的时候。能否请大神指点一二?谢谢!
(我在codepen上面放了我的代码:[https://codepen.io/Joey-z-rp/pen/gxdqgw] )
希望能够持续更新,我跟着学 (,,• ₃ •,,)
贴上你的博客地址吧
阅读了博主的canvas系列文章,能总结是好事,但是有些文字是直接copy的,而且只字未提《HTML5+Javascript动画基础》这本书,未免有些不厚道了。
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.