Back to Course
Intro to JS: Drawing & Animation
0% Complete
0/0 Steps
-
Introduction
The Creation of Chemistry - The Fundamental Laws -
Intro to programming2 Topics
-
DrawingWater and Solutions2 Topics
-
AnimationDrawing basics4 Topics
-
FINAL QUIZZESColoring2 Topics
-
Animation basics3 Topics
Participants 1139
Lesson Progress
0% Complete
Colour the sky!
We’ve drawn a snowman on a sunny day, and you’ll add color to this drawing so that the snowman knows how sunny it really is!
Start off by using the background() command to change the color of the sky (Blue might be a nice color to use)
// The ground
rect(0, 300, 400, 100);
// The sun
ellipse(80, 64, 100, 100);
// The snowman
ellipse(200, 300, 150, 150);
ellipse(200, 200, 100, 100);
ellipse(200, 120, 75, 75);