Making an ice cream sandwich
This is the original image I was trying to recreate

And this is what I made using processing

This is the cade in case someone's interested:
void setup() {
size(500, 500);
background(150);
}
void draw() {
noStroke();
//bottom cake
fill(139,69,19);
stroke(109,39,2);
strokeWeight(4);
quad(50,200,
150,300,
400,250,
300,150);
//ice cream
fill(255);
noStroke();
quad(60,103,
60,203,
152,293,
152,193);
quad(152,193,
152,293,
390,245,
390,150);
//top cake
fill(139,69,19);
stroke(109,39,2);
strokeWeight(4);
quad(50,100,
150,200,
400,150,
300,50);
//add lines to top cake
stroke(109,39,2);
strokeWeight(4);
line(73,110,
134,170);
line(160,188,
380,144);
noLoop();
}

And this is what I made using processing

This is the cade in case someone's interested:
void setup() {
size(500, 500);
background(150);
}
void draw() {
noStroke();
//bottom cake
fill(139,69,19);
stroke(109,39,2);
strokeWeight(4);
quad(50,200,
150,300,
400,250,
300,150);
//ice cream
fill(255);
noStroke();
quad(60,103,
60,203,
152,293,
152,193);
quad(152,193,
152,293,
390,245,
390,150);
//top cake
fill(139,69,19);
stroke(109,39,2);
strokeWeight(4);
quad(50,100,
150,200,
400,150,
300,50);
//add lines to top cake
stroke(109,39,2);
strokeWeight(4);
line(73,110,
134,170);
line(160,188,
380,144);
noLoop();
}
Comments
Post a Comment