Week 2- Esoteric code

Open closet(function draw(){

fill(247,198,48)
Shirt(torso.x, torso.y, 10)

fill(0)
Trousers(legs.x, legs.y, 12)

})

I struggled to understand the task for this week so I decided to keep my work close to the example.

After speaking with Lizzie I developed my original code.

function setup() {
createCanvas(400, 400);
}

function draw() {
background(220);

makeCereal(“dairy milk”)
putClothesOn()

}

function putClothesOn(shirt,trousers){

return shirt
return trousers

}

function getMilk(milk){

return milk;

}

function makeCereal(milk,cereal){
milk = getMilk(“oat milk”)

}

Leave a Reply

Your email address will not be published. Required fields are marked *