Please enable JavaScript to use CodeHS

Mix and Match Middle School Course

Lesson 8.5 Color Transitions

Description

In this lesson, students create a color transition animation. Using variables, students set the initial color state, then gradually add and remove red, green, and blue values of a color, creating an animated color gradient.


Objective

Students will be able to:

  • Declare and initialize variables
  • Pass variables as arguments to p5.js drawing functions
  • Increment and decrement variables