News for hackers. Stuff that matters.
Re:Breaking down a ripple animation in JavaScript by __ryan__ on Thursday August 19, 2021 @02:48PM (#28237709)
> To animate the wave in JavaScript, we can use setInterval to repeatedly call our drawRipple() function, and pass in a timestamp to adjust the wave position.

You described generating a ripple still-frame then completely glossed over the “animation” part.

Re:Breaking down a ripple animation in JavaScript by agys on Thursday August 19, 2021 @03:10PM (#28237989)
While setInterval works, requestAnimationFrame(time) is probably better suited for animation purposes.
Re:Breaking down a ripple animation in JavaScript by bryanbraun on Saturday August 21, 2021 @11:38AM (#28257841)
That's a good callout. I just updated it to add more detail there.