For the summative project with drawing with Javascript., I made a house with a sun and the trees. I did a house because I want to live in a house with two floors. Just like what I drew. I did all of this projects from Khan Academy Javascript hour of code. I tried this before once, so it wasn't boring and it was fun to just try everything again. It made me remember how to do it. In this project, I learned that codes can do lots of things and if your good at it, you can do anything. To try this, come to this link and try Khan Academy hour of code! The code is this:
background(0, 166, 255); //sun fill(255, 140, 0); ellipse(325,75,100,100); //House fill(171, 98, 21); rect(100,199,200,200); //roof fill(179, 7, 7); triangle(100,200,200,50,300,200); //window fill(255, 255, 255); rect(130,242,75,75); //door fill(115, 63, 8); rect(230,324,50,75); fill(255, 221, 0); ellipse(270,365,10,10); //trees fill(55, 181, 6); ellipse(50,300,75,75); ellipse(350,300,75,75); fill(140, 84, 0); rect(333,333,34,75); rect(32,333,34,75);
0 Comments
|
Archives
June 2021
Categories
All
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. |