Thursday, January 4, 2024

🖥 Line Color Rotation

  • Lines running from the center of the screen to the edges of the screen.
  • A number of random colors stored in an array matching the number of lines.
  • In a cycle, all lines are drawn with the colors from the array.
  • Before doing another cycle the colors in the array are shifted to the right.
  • In the next cycle of drawing the same lines, the shifting of colours will make it look like the lines are animated in a clockwise motion.



No comments:

Post a Comment

📚 A BAM Use-Case: Giving a New Lease on Life to Old BASIC Programs

One BAM's top goals is to make it fairly easy to port old BASIC programs so that they can be shared via the web for running in any web b...