我想使用javascript从烟雾动画创建我的标题标题。就像在这里这种类型的烟雾移动创造字母,但我怎么能在这里操纵烟雾?:http://jsfiddle.net/Ujz4P/1563/ 例如,我如何将其形成为' john'
function draw() {
// Clear the drawing surface and fill it with a black background
//context.fillStyle = "rgba(0, 0, 0, 0.5)";
//context.fillRect(0, 0, 400, 400);
context.clearRect(0,0,400,400);
// Go through all of the particles and draw them.
particles.forEach(function(particle) {
particle.draw();
});
}
有更简单的方法吗?
答案 0 :(得分:3)
我认为算法可以像......
这是要点,随时可以要求澄清任何事情。
答案 1 :(得分:0)
有很多很棒的网站可以为标题序列生成GIF。也许你可以在你的HTML中嵌入一个gif。
希望这有帮助。