Question: code in peblio - Try and create a triangle using variables and the random function to appear anywhere on the canvas while staying the same
code in peblio
- Try and create a triangle using variables and the random function to appear anywhere on the canvas while staying the same size. - Use the random function to create a random canvas size every time play is pressed while having an ellipse staying in the cent nvas no matter the canvas size. (Hint: use custom variables) Run Code p5 K index.html x sketch.js x style.css X 1 function setup() { 2 createCanvas (400, 400); 3 } 4 function draw() { 5 background (220); 6 7 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
