Javascript: Confetti particles falling down in canvas
问题 I found this great script to make it rain confetti: http://jsfiddle.net/hcxabsgh/ Note how the particles have this twist/turn/skew-effect to make it feel more natural. I have been trying to make the particles round which also works nicely: http://jsfiddle.net/rqr9hb7x/2/ But i can't get the particles to twist/turn/skew around their axes like in the rectangular example. I figured it should be doable with ctx.setTransform(), since it handles skew-parameters, but it seems to skew the whole