News for hackers. Stuff that matters.
Re:Bouncing DVD Logo by balazsbela on Wednesday April 15, 2020 @06:27PM (#22883841)
My wife's version uses SVG for scaling and is also responsive on resize.

https://github.com/boglarkasebestyen/dvdscreensaver

Re:Bouncing DVD Logo by gitgud on Wednesday April 15, 2020 @08:25PM (#22884796)
Nice, a bit too fast on my machine though. It should probably use a time-based interval, rather than updating every frame.
Re:Bouncing DVD Logo by dannyw on Wednesday April 15, 2020 @09:18PM (#22885129)
It actually uses a time-based interval and tries to move every 5ms. At this resolution, different browsers will handle it differently.

Most web displays run at 60 Hz (16.66ms), making it inefficient to update every 5ms. 144Hz displays do exist and are wonderful, but you should always use requestAnimationFrame anyway.

Re:Bouncing DVD Logo by chaps on Wednesday April 15, 2020 @11:12PM (#22885659)
The strobe was a nice touch!