Unit 1: Day 13
START DATE:DUE DATE:STATUS:Open
Tasks
This lesson has been designed with flexibility in mind. You can:
- Allow students to begin working through the remaining Unit 1 assignments at their own pace.
- Introduce concepts from the Theory Unit.
13.1 Pythagoras Example (In Preparation for Assignment 5)
- Complete the Pythagoras activity with them as a set up for the Assignment 5.
Unit 1 - Example 12 - Pythagoras
This is the set up code for the Pythagoras assignment.
let title = "Pythagoras' Theorum";
let widthB = 200;
function setup() {
let sketch = createCanvas(500, 500);
sketch.parent("mycanvas");
}
function draw() {
widthB = mouseX;
background(220);
textSize(30);
text(title, 150,40);
stroke(255,255,0);
strokeWeight(4);
line(50,50,50,300);
line(50,300, widthB, 300);
line(50,50, widthB, 300);
}
13.2 Assignment 4 - Draw-O-Matic
- Instructions for this assignment can be found in the Shared Activity Folder (1.2 - Year 1: Programming Part 1).
Continue to Unit 1: Day 14 »