//My maze. void setup() { background(255); //white size(500, 400); //screen size smooth(); //so lines aren't all pixelated } void draw () { strokeWeight(3); //maze's width stroke(0); //maze's color=black line(20, 20, 220, 20); line(240, 20, 380, 20); line(20, 20, 20, 320); line(20, 320, 60, 320); line(80, 320, 380, 320); line(380, 320, 380, 20); //end of making the box outline line(20, 40, 360, 40); //the horizontal lines within the maze line(20, 60, 160, 60); line(180, 60, 360, 60); line(40, 80, 120, 80); line(140, 80, 360, 80); line(20, 100, 60, 100); line(80, 100, 360, 100); line(40, 120, 360, 120); line(40, 140, 120, 140); line(140, 140, 380, 140); line(20, 160, 320, 160); line(340, 160, 360, 160); line(20, 180, 60, 180); line(80, 180, 340, 180); line(20, 200, 120, 200); line(140, 200, 360, 200); line(20, 220, 100, 220); line(120, 220, 180, 220); line(200, 220, 380, 220); line(40, 240, 140, 240); line(160, 240, 260, 240); line(280, 240, 380, 240); line(40, 260, 120, 260); line(140, 260, 380, 260); line(40, 280, 120, 280); line(140, 280, 220, 280); line(240, 280, 360, 280); line(40, 300, 120, 300); line(140, 300, 320, 300); line(340, 300, 380, 300); line(200, 20, 200, 40); //the vertical lines within the maze line(360, 40, 360, 60); line(360, 80, 360, 100); line(180, 40, 180, 60); line(120, 80, 120, 100); line(200, 60, 200, 80); line(320, 300, 320, 260); line(120, 280, 120, 260); line(40, 300, 40, 280); line(40, 260, 40, 240); line(140, 280, 140, 260); line(140, 240, 140, 220); line(160, 240, 160, 220); line(120, 200, 120, 180); line(360, 200, 360, 140); line(140, 140, 140, 120); line(80, 120, 80, 140); } void mouseDragged () { strokeWeight(2); //lines width stroke(255, 0, 0); //makes the line red line (mouseX, mouseY, pmouseX, pmouseY); //the "pen" feature, so you can draw in the maze with your mouse }