top of page
Writer's pictureliraz primo

Oscillating Motion

This week, I was inspired from one of the sketches from the code example collection: https://editor.p5js.org/codingtrain/sketches/BJbj5l3Y7.

I wanted to explore how I can create a random drawing grid that will look like a scribble drawing.

In the sketch, I added noise() to the angle and the radius:

let angle = noise(time / 2, i, j) * TWO_PI * 2
let r = noise(time, i, j) * size * 0.5
let xpos = i + cos(angle) * r;
let ypos = j + sin(angle) * r;

I tried using different shapes but the one that fascinated me the most was the curve one, the movement of it reminded me of how you scribble circles with a pencil. Each mouchPressed() the grid starts all over again randomly.


I had a lot of fun doing this sketch and exploring the different patterns that I can create. Playing with the pixelDensity(), the time, size and shapes created some new cool possibilities.







Going forward, I think I would like to explore more ways of creating patterns and maybe even trying to combine between textile patterns that are based on Escher geometry techniques and p5js.





16 views0 comments

Recent Posts

See All

Comentarios


bottom of page