My drawing with code is a cabin in a snowy setting. I made it using lines, ellipses, and rectangles, adjusting the size, fill, etc. I learned about several things, like typing code, adjusting size, etc. Making this was SUPER challenging. I never thought that writing this much code could be so hard. The windows were much more troublesome than I thought. I managed to do it, however, through tons of trial, error, and more error. If this is what programmers and video game developers have to deal with everyday, props to them. Here is the code:
noStroke(); background (196, 255, 255); //snow rect(0,300,403,102); fill(71, 65, 65); ellipse(239,80,14,30); ellipse(239,58,23,36); ellipse(239,32,29,45); fill(130, 73, 43); //house stroke (1); rect(115,182,145,138); //roof stroke (1); triangle(189,79,67,194,312,198); //chimney rect(229,150,24,-61); //door fill(117, 71, 1); rect(171, 261, 37, 59); //knob fill(89, 56, 21); ellipse(199,300,6,6); //right window fill(224, 251, 255); rect(224, 233, 18,18); line(225,243,243,243); line(234,251,234,234); //left window fill(224, 251, 255); rect(129, 234, 18,18); line(138,251,138,234); line(148,242,129,242);
0 Comments
For my meaningful shapes scene, I drew a Nintendo Switch, with the setting in a park. This is meaningful to me because I really like Nintendo and its games and consoles. I also put the setting in a park to illustrate the fact that Switches can be taken anywhere. This was really hard to work on and I'm very proud of this!
|
AuthorAbout me: I am author of this blog/website. Archives
April 2019
Categories
All
|