TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Canvas Experiment with Code: Particles Web Matrix

28 点作者 luzon19将近 13 年前

5 条评论

drkevorkian将近 13 年前
As I left it going the particles seemed to be accelerating. I think this is because the acceleration term is proportional to the distance, rather than the usual 1/(distance)^2
评论 #4228037 未加载
ehsanu1将近 13 年前
Had some fun messing with the variables for number of particles, acceleration and other things. There are some interesting patterns (kinda like interference patterns) if you make the acceleration large (change the denominator from 2000 to around 10). The code itself isn't that interesting, except to the extent that modern JS engines can keep up with a brute force update of 200x200 particles at almost 60fps.
fredley将近 13 年前
Wasn't this idea the basis for the spoof MMO Asteroids earlier this year?<p><a href="http://seb.ly/2012/04/gotcha-fake-mmo-asteroids-april-fool/" rel="nofollow">http://seb.ly/2012/04/gotcha-fake-mmo-asteroids-april-fool/</a>
6ren将近 13 年前
much faster in chrome than FF
rorrr将近 13 年前
This is so trivial. Why is it on the front page?
评论 #4228252 未加载