Class 303 – Unit 1.2 Colors

Learning to control colors in your programs

Today's Goals

  • Use colors to change how shapes look
  • Apply the fill and opacity properties
  • Create custom colors using RGB values

Agenda

  • Quick lesson on colors and RGB
  • Teacher demo
  • Work in CMU CS Academy – Unit 1.2
  • Check for understanding

What You Must Finish Today

  • Log into CMU CS Academy
  • Complete today's assigned exercises in Unit 1.2 – Colors
  • Show correct use of:
    • fill colors
    • opacity
    • at least one RGB color

Homework

Any CMU activities from Unit 1.2 that you do not finish in class

Quick Reminder

  • Colors in code must be in quotes like 'red'
  • RGB values go from 0 to 255
  • Opacity 100 = solid, Opacity 0 = invisible