Home /  Sketchbook /  p5.js - Common Examples - Random Colors
  • Info

Overview

This is a p5.js sketch to demonstrate a basic P5jsUtils.getRandomColorByID() to get one of the 6 colors of the rainbow.

Controls

Mouse

  • Clicking (touching) will regenerate the random colors with the next color in the rainbow.

References:

  • (none)

Links:

  • Live View
  • Source on Github

Screenshot:

screenshot screenshot screenshot screenshot screenshot screenshot