xxxxxxxxxx
17
function setup() {
createCanvas(400, 400);
}
function draw() {
background(255);
// Draw a black outlined square
stroke(0);
noFill();
rect(100, 100, 200, 200);
// Draw a red horizontal line from the midpoint of the left side toward the middle of the right side
stroke(255, 0, 0);
line(100, 200, 300, 200);
}