/* 6.914 Example 0.4 We can modify the thickness of any line by using strokeWeight, like this: strokeWeight(width); The default width is 1. We can modify the color of any line by using stroke, like this: stroke(R,G,B); The default stroke color is (0, 0, 0) - i.e., black. */ void setup(){ size(300, 400); // window of size 300 x 400 background(150, 150, 230); // light blue background } void draw(){ stroke(100, 100, 100); // dark grey strokeWeight(.5); // thin line(50, 50, 100, 50); // horizontal line stroke(150, 0, 150); // dark pink strokeWeight(2); // slightly thicker line(150, 150, 150, 300); // vertical line stroke(0, 255, 0); // bright green strokeWeight(8); // much thicker line(200, 200, 250, 250); // diagonal line }