Rebuild the Smiley in p5.js
- Open the template file:
- Fork the project:
Click „Fork“ in the top left corner and choose „Fork to my Projects“ to create your own copy. - Rename the project:
Change the project name to „04_SUE_Smiley“. - Adjust the canvas and settings in the
setup()
function:- Set the canvas size to
400 x 400
- Add a
frameRate
of 10 - Switch the angle mode from radians to degrees:
p.angleMode(p.DEGREES)
- Set the canvas size to
- Draw the Smiley:
- Use a stroke weight of 10 for the outer circle
- Add facial features (eyes, mouth, etc.)
- Use an arc to draw the smile:
(you can usep.arc()
with appropriate parameters)
Here is my result: