Skip to content
Advertisement

p5.js: Let the computer draw something

I would like to let the computer draw something. It should look like a human is drawing something on a paper, with random values.

This is my try:

JavaScript
JavaScript

So at the moment, it just puts random lines on top of each other. But it should result something like this for example:

enter image description here

How is it possible to code it like that?

Advertisement

Answer

Hope it helps a little. Still not perfect but possible approach to play with and further advance 😉 Have a fun with

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement