行业知识
html--心花怒放
2026-11-12 11:29:43
来源:互联网转载
代码
Canvas 绘制一个❤ html, body { height: 100%; padding: 0; margin: 0; } canvas { position: absolute; width: 100%; height: 100%; } Canvas Not Support /* * Settings */ var settings = { particles: { length: 500, // maximum amount of particles duration: 2, // particle duration in sec velocity: 100, // particle velocity in pixels/sec effect: -0.75, // play with this for a nice effect size: 30, // particle size in pixels }, }; /* * RequestAnimationFrame polyfill by Erik M?ller */ (function () { var b = 0; var c = ["ms", "moz", "webkit", "o"]; for (var a = 0; a = duration && firstActive != firstFree) { firstActive++; if (firstActive == particles.length) firstActive = 0; } }; ParticlePool.prototype.draw = function (context, image) { // draw active particles if (firstActive
上一篇:服务器怎么建立d盘?