This is a generative art simulation of underwater microbes, mimicking their shapes and movements.
The simulation combines Lissajous curves with dynamic color, and four different types of microbes, producing a digital ecosystem.
https://editor.p5js.org/yc4351/sketches/04EbI-7M6
Just some inspo at the beginning…
start from - coding challenge #116 Lissajous Curve to create some organic flow of simple circles, then comes to the idea of create an underwater ecosystem
a
/b
ratios (2/3)seg
controls animation speedMy First try - create some random circles swaying
https://editor.p5js.org/yc4351/sketches/WdTyrrbCf
ellipse(
r * cos(a * th) * 0.2,
r * sin(b * th) * 0.2,
r * cos(a * (th + seg)) * 0.4,
r * sin(b * (th + seg)) * 0.4
);
th += seg;
(I tried to make them more like the real world microbes but found it kind of gross so I just use geometry shapes)
-Used randomized speedX
and speedY
to let each microorganism float in different directions.
-Added rotation
-Incorporated smooth pulsation (sin(frameCount * 0.03))
to mimic breathing/swelling motions.