Class 309 – 2.3 Properties
Change shapes after you create them
Today's Goals
- Learn what shape properties are
- Change shapes after they are created
- Use variables to control graphics
Agenda
- Short lesson on properties
- Guided examples
- Work in CMU CS Academy – Unit 2.3
- Quick checks for understanding
What You Must Finish Today
- Log into CMU CS Academy
- Complete assigned exercises in Unit 2.3 – Properties
- Practice:
- Storing shapes in variables
- Changing properties like color, size, and position
Homework
Finish any Unit 2.3 activities not completed in class
Quick Reminder
- To change a shape later, you must store it in a variable
- Use a dot to change properties:
shape.fill = 'green' - Spelling and capitalization matter