我想使用 javascript 从烟雾动画中创建我的标题。就像这里这种类型的烟雾移动来创建字母但我如何能够在这里操纵烟雾?: http: //jsfiddle.net/Ujz4P/1563/ 例如,我如何使其形成“约翰”
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();
});
}
有没有更简单的方法来做到这一点?