This assignment, we learned how to draw with code. I made the ice creams using the commands ellipse (creating circles) , and used the command triangle to create the cone. To fill the scene with color, I used fill and background- commands that fill the shapes with color. I also used 'text' to label the ice creams. I decided to create ice creams through code because they are one of my favorite treats. Through this activity, I learned how to use basic coding elements and color options. This was very fun, and I have included the image with the code below. background(253, 255, 222); noStroke(); fill(219, 248, 255); ellipse(145,136,20,20); ellipse(155,146,20,20); ellipse(165,136,20,20); ellipse(155,126,20,20); ellipse(364,136,20,20); ellipse(354,145,20,20); ellipse(344,136,20,20); ellipse(354,126,20,20); ellipse(251,136,20,20); ellipse(261,146,20,20); ellipse(271,136,20,20); ellipse(261,126,20,20); ellipse(57,136,20,20); ellipse(67,126,20,20); ellipse(77,136,20,20); ellipse(67,145,20,20); fill(255, 145, 209); ellipse(200,167,90,90); fill(190, 150, 90); triangle(204,371,157,200,240,200); fill(255, 217, 252); ellipse(169,173,7,15); ellipse(200,181,7,15); ellipse(200,154,7,15); ellipse(223,144,7,15); ellipse(183,137,7,15); fill(255, 145, 209); ellipse(200,198,90,20); fill(255, 214, 247); ellipse(234,189,7,15); fill(233, 205, 250); ellipse(60,210,80,80); fill(190, 150, 90); triangle(62,365,23,237,102,235); fill(233, 205, 250); ellipse(60,235,89,16); fill(210, 250, 219); ellipse(343,210,80,80); fill(161, 95, 37); ellipse(327, 203, 12,10); ellipse(361, 186, 15,10); ellipse(318, 215, 12,10); ellipse(357, 206, 10,10); ellipse(330, 186, 12,10); fill(190, 150, 90); triangle(342,369,384,237,301,235); fill(210, 250, 219); ellipse(343,235,95,30); fill(219, 248, 255); rect(0,346,407,500); ellipse(145,36,20,20); ellipse(155,46,20,20); ellipse(165,36,20,20); ellipse(155,26,20,20); ellipse(364,36,20,20); ellipse(354,46,20,20); ellipse(344,36,20,20); ellipse(354,26,20,20); ellipse(251,36,20,20); ellipse(261,46,20,20); ellipse(271,36,20,20); ellipse(261,26,20,20); ellipse(57,36,20,20); ellipse(67,46,20,20); ellipse(77,36,20,20); ellipse(67,25,20,20); ellipse(145,86,20,20); ellipse(155,96,20,20); ellipse(165,86,20,20); ellipse(155,76,20,20); ellipse(364,86,20,20); ellipse(354,96,20,20); ellipse(344,86,20,20); ellipse(354,76,20,20); ellipse(251,86,20,20); ellipse(261,96,20,20); ellipse(271,86,20,20); ellipse(261,76,20,20); ellipse(57,86,20,20); ellipse(67,76,20,20); ellipse(77,86,20,20); ellipse(67,95,20,20); fill(214, 153, 255); text("Lavender Rose Icecream", 8, 373, 277, 38); fill(155, 10, 163); text("Cherry Icecream", 161, 373, 260, 38); fill(101, 214, 195); text("Mint Choco Icecream", 281, 373, 260, 38); fill(10, 3, 3); fill(224, 103, 186); ellipse(78,217,10,10); ellipse(46,190,20,20); ellipse(44,217,18,18); fill(245, 76, 76); ellipse(199,115,20,20);
0 Comments
Leave a Reply. |
AuthorHi! My name is Kyra and I like to read! For further information, visit the "About Me" page! CategoriesArchivesThis work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. |