News for hackers. Stuff that matters.
Re:Breaking down a ripple animation in JavaScript by ktpsns on Thursday August 19, 2021 @04:32PM (#28238988)
Story time! When I was around 12 years old, I've tried so hard to understand the JavaScript code to render an analog clock within HTML. I did not learn yet about sine and cosine and it was really a miracle how the code could determine the positions of the clock elements.

First learning how to code, then learning the math was a hard way to do the interesting stuff with computers. The other way around is much more straight forward.

Re:Breaking down a ripple animation in JavaScript by atum47 on Thursday August 19, 2021 @04:41PM (#28239122)
You just described my whole career, haha. I learned JavaScript by inspecting other's people code. I remember this cool effect I saw on the website for the matrix (the movie), it blew my mind back then, now I know is just image replacement on the mouse hover. The effects was a bunch of out of air tvs and when you position the mouse the tv would show a channel