p5.js sketches

Sin Waves

In the process of learning p5.js, one of the first visually appealing sketches I made was a sin wave visualization. The sketch draws circles along a sin wave while gradually changing color. The above visualization is embedded p5.js and I've included a few more versions below as gifs.

blue sin wave
green sin wave
pinkish sin wave

Polygon Generation

Randomly placed polygons with faces generated based on the x and y position of the mouse. Move the mouse around to make some shapes.

Yikai Kuo © 2025