Title

By-line

You can have a nice paragraph.

In [1]:
// This is a comment
beginShape();
vertex(30, 20);
//vertex(85, 20);
vertex(85, 75);
//vertex(30, 75);
endShape(CLOSE);

/*

Here
here
here

*/
Sketch #1:

Sketch #1 state: Loading...
In [2]:
void draw() {
    println("Point at: " + mouseX + ", " + mouseY);
}
Sketch #2:

Sketch #2 state: Loading...
In [6]:
void draw() {
}

void mousePressed() {
        println("Point at: " + mouseX + ", " + mouseY);
}
Sketch #6:

Sketch #6 state: Loading...
In [7]:
void draw() {
}

void mousePressed() {
        println("vertex(" + mouseX + ", " + mouseY + ")");
}
Sketch #7:

Sketch #7 state: Loading...
In [8]:
beginShape();

vertex(41, 34.66668989040295)
vertex(35, 23.66668989040295)
vertex(47, 10.66668989040295)
vertex(62, 13.66668989040295)
vertex(70, 28.66668989040295)
vertex(61, 39.66668989040295)
vertex(85, 39.66668989040295)
vertex(85, 50.66668989040295)
vertex(56, 50.66668989040295)
vertex(60, 68.66668989040295)
vertex(74, 87.66668989040295)
vertex(57, 88.66668989040295)
vertex(41, 70.66668989040295)
vertex(27, 87.66668989040295)
vertex(15, 79.66668989040295)
vertex(21, 68.66668989040295)
vertex(21, 49.66668989040295)
vertex(5, 44.66668989040295)
vertex(6, 35.66668989040295)
vertex(32, 39.66668989040295)
endShape(CLOSE);
Sketch #8:

Sketch #8 state: Loading...
In [33]:
int faceColor = 128;

void drawFace(float x, float y, float w, float h) {
    fill(255);
    ellipse(x, y, w, h);
    fill(faceColor);
    ellipse(x - w/4, y - h/4, w/4, h/4);
    ellipse(x + w/4, y - h/4, w/4, h/4);
}

void setup() {
    size(250, 250);
}

void draw() {
    //drawFace(random(250), random(250), random(50), random(50));
    background(128);
    drawFace(mouseX - 20, mouseY - 20, 50 * mouseY/250, 100 * mouseY/250);
}

void mousePressed() {
    faceColor = random(255);
}
Sketch #33:

Sketch #33 state: Loading...