Back to Course
Intro to JS: Drawing & Animation
0% Complete
0/0 Steps
-
Introduction
Intro to programming2 Topics -
Drawing basics4 Topics
-
DrawingColoring2 Topics
-
AnimationAnimation basics3 Topics
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);