Tags:

    POGCHAMP

    POGCHAMP we did it we created our beta drawing program.

    function setup() {
    createCanvas (900, 600)
    }

    function draw() {
    // red
    fill(255, 0, 0)
    rect(795 , 0, 800, 90)
    // orange
    fill(255, 100, 0)
    rect(795, 95, 800, 105)

    // yellow
    fill(255, 255, 0)
    rect(795, 205, 800, 115)
    // green
    fill(0, 255, 0)
    rect(795, 325, 800, 115)
    // blue
    fill(0, 0, 255)
    rect(795, 445, 800, 120)
    strokeWeight(10)
    stroke(0)
    if (mouseIsPressed) {
    line (mouseX, mouseY, pmouseX, pmouseY)
    }
    }