CCLab Example Codes
Variables
- Align Multiple Shapes with a Variable
- Develop a Color Palette with Variables
- Place Two Ellipses at the Same Positions by Re-using Variables
- Use Environment Variables: width and height
Conditionals
- Change the Background Color Based on the Mouse Position
- Check Mouse Position
- Check Mouse X
- Check Out of Canvas
- Invert Color with a Boolean Variable and If Statements
- Use a Variable and If Statements to Select a Shape