Project 2

What could you make with a set of line segments? TEKS Standard 2A

// Set the stroke color to blue, then draw a
// "heavy" point.
stroke(0, 0, 255);
strokeWeight(2);
point(10, 10);

// Decrease the stroke weight and add a
// line segment to the graph.
strokeWeight(1);
line(10, 10, 20, 20);

// Draw another heavy point at the end of
// the line segment.
strokeWeight(2);
point(20, 20);

// Decrease the stroke weight and add
// another line segment.
strokeWeight(1);
line(20, 20, 40, 20);

// Draw another heavy point at the end of
// the line segment.
strokeWeight(2);
point(40, 20);

// Decrease the stroke weight and add
// (yet) another line segment.
strokeWeight(1);
line(40, 20, 60, 30);

// Draw a final heavy point.
strokeWeight(2);
point(60, 30);

// Now draw additional line segments and
// play with their orientation.

/**
 * What are the domain and range
 * of the graph you drew?
 *
 * Domain: []
 * Range: []
 */

All source code is licensed under the MIT License. Text and images are free to remix under the terms of a Creative Commons Attribution 4.0 International License.