The author recounts his journey to create a simple generativeâart sketch in p5.js that illustrates how colors can be generated using the HSL model. After explaining hue, saturation, and luminosityâand why HSL is more natural for artists because it forms a circular hue wheelâhe presents a program that picks a random hue, computes its triad by adding 120° and 240°, then draws three rectangles and two semiâtransparent circles in those colors. Each click reâchooses the triad; rightâclick saves the image. He notes how this exercise teaches basic arithmetic and arithmetic with degrees while also serving as background art or prints, and contrasts HSLâs advantages over RGB and CMYK for generative art.






















