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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Procedural Textures in HTML5 Canvas

28 点作者 techdog超过 13 年前

2 条评论

BonsaiDen超过 13 年前
Took the time and refactored the perlin-noise port in the post to make it look a bit more like JavaScript.<p>As a small side effect I got a 3x speed increase.<p>JS Engines are good at optimizing, but having a senseless 256 copy loop in every call doesn't really work out that well if you can have a memcpy with Array.slice().<p>See: <a href="http://jsperf.com/perlin-noise" rel="nofollow">http://jsperf.com/perlin-noise</a>
ricardobeat超过 13 年前
clickable demo: <a href="http://jsbin.com/edobev" rel="nofollow">http://jsbin.com/edobev</a>