I drew a mug that has a snowman on it and it has hot chocolate in it. I drew this because this reminds me of winter. I made this by making continuos changes and seeing what looks the best. I learned that making a drawing out of code was pretty simple. It was hard to control triangles, but I looked at the documents to see what controlled what. This is my code that I used to make this:
stroke(82, 16, 16); strokeWeight(7); fill(5, 42, 59); rect(-16, 2, 211, 206); //left-up window sill fill(5, 42, 59); rect(197, 3, 199, 206); //right-up window sill noStroke(); fill(59, 5, 5); rect(197, 212, 231, 206); //ground fill(59, 5, 5); rect(-44, 200, 271, 268); //ground stroke(245, 0, 0); strokeWeight(12); fill(59, 5, 5); arc(50, 311, 67, 70, 48, 650);//mug holder noStroke(); fill(245, 0, 0); rect(43, 192, 214, 391); //mug fill(245, 0, 0); ellipse(150, 200, 219, 119); //outline of mug 1 fill(255, 255, 255); ellipse(150, 200, 212, 110); //outline of mug 2 fill(153, 107, 107); ellipse(150, 200, 200, 100); //hot chocolate fill(255, 255, 255); ellipse(150, 200, 15, 10); //marshmellows ellipse (99, 192, 15, 10); //marshmellows ellipse (188, 218, 15, 10); //marshmellows ellipse (125, 223, 15, 10); //marshmellows ellipse (197, 176, 15, 10); //marshmellows ellipse (143, 170, 15, 10); //marshmellows textSize(20); noStroke(); ellipse(20, 35, 9, 9); //snow ellipse(272, 90, 9, 9); //snow ellipse(248, 47, 9, 9); //snow ellipse(68, 104, 9, 9); //snow ellipse(330, 187, 9, 9); //snow ellipse(341, 116, 9, 9); //snow ellipse(125, 90, 9, 9); //snow ellipse(154, 41, 9, 9); //snow ellipse(262, 152, 9, 9); //snow ellipse(358, 34, 9, 9); //snow ellipse(162, 129, 9, 9); //snow ellipse(27, 175, 9, 9); //snow fill(255, 255, 255); ellipse(134, 298, 59, 59); //snowman head ellipse(134, 355, 85, 85); //snowman body fill(0, 0, 0); ellipse(127, 288, -8, 8); //snowman left eye ellipse(144, 288, -8, 8); //snowman right eye fill(179, 87, 25); triangle(129, 297, 146, 297, 163, 320); //snowman nose fill(0, 0, 0); rect(101, 263, 62, 14); //snowman hat base rect(108, 255, 45, 11); //snowman hat top fill(161, 16, 16); rect(107, 308, 55, 19); //snowman scarf triangle(109, 311, 232, 348, 200, 317); //snowman scarf fill(0, 0, 0); ellipse(137, 338, 9, 9); //snowman button ellipse(137, 356, 9, 9); //snowman button
0 Comments
Leave a Reply. |
Archives
May 2019
Categories
All
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. |