Blowing bubbles

Discovered the wonderful Daniel Shiffman recently, and fell in love with his beginner tutorials on p5js. What a superb educator!

Click and drag to draw more bubbles. The max number of bubbles is set to 100, so by drawing new ones you can sort of control what part of the canvas they can move. Click once on a bubble to delete it, leaving a white dot. Art by chance kind of thing.

See the Pen Blowing bubbles by Morten Skogly (@mskogly) on CodePen.

Two bubbles with hit detection. If they touch the shrink by 1

See the Pen Blowing bubbles 2 (Pappmaskin.no) by Morten Skogly (@mskogly) on CodePen.

Publisert
Kategorisert som Art, Code

Av Morten Skogly

Creator of Things

Legg igjen en kommentar

Din e-postadresse vil ikke bli publisert. Obligatoriske felt er merket med *