Water bubbles

I aimed to visually represent water bubbles as they might appear when submerged in water. createVector(random(width), random(height)) generates a new vector with random x and y coordinates within the canvas bounds. This vector represents the particle's position on the canvas.

Water flow 2

I try to create a three-dimensional particle system created using the p5.js library, where each particle's position is defined using createVector() within a WEBGL canvas. The system simulates a space filled with floating particles that leave a trail as they move. Also, I moved the background(0) to be in the function setup.

Brush

The concept is to develop an interactive drawing tool within p5.js that simulates a brush with a hexagonal shape. This brush dynamically changes its form in real-time. The vertices of the hexagon shift slightly with each frame.I Initialized the center variable as a vector representing the starting point of the hexagon. Also, I try to draw the Shape with beginShape() and endShape() encapsulate the drawing of the hexagon.

Previous
Previous

Class 1 - Random water flow

Next
Next

Class 3 - Force - Wind