Create a portrait of your neighbor. Use only 2D primitive shapes –
triangle()– and basic color functions –
It is my first time to play with P5 and it`s really exciting!
First I just draw with P5 randomly and I found that it was really hard to locate where exactly did I want to draw a line or circle. So I tried to draw on a paper and measure the coordinate.
Besides, I also add the original portrait photo as background image.
img = loadImage(“assets/portrait1.JPG”); image(img2,720,0);
In the end I got this.
But after a while I want to make it have some kind of movements.
So I use second() and mills() to adjust the color automatically.