setup()
setup() runs once when the sketch starts. Here it's used to size the canvas to the full window and set drawing defaults like noStroke() that apply to everything drawn afterward.
function setup(){
createCanvas(windowWidth,windowHeight);
background(5,30,10);
noStroke();
}
Line-by-line explanation (3 lines)
createCanvas(windowWidth,windowHeight);- Creates a canvas that fills the entire browser window.
background(5,30,10);- Paints the canvas a very dark green, setting the 'soil' color the vines will grow against.
noStroke();- Turns off shape outlines so every ellipse and triangle drawn later is a solid, borderless blob of color.