Jupyter at Bryn Mawr College |
|||
Public notebooks: /services/public/dblank / CSEdWeek2015 |
println("Doug");
size(500, 300);
fill(color(150, 5, 150));
triangle(250, 100, 100, 200, 400, 200);
rect(150, 200, 200, 50);
fill(color(255, 5, 0));
ellipse(50, 50, 50, 60);
void setup() {
size(500, 300);
fill(color(150, 5, 150));
triangle(250, 100,
100, 200,
400, 200);
rect(150, 200, 200, 50);
fill(color(255, 5, 0));
ellipse(50, 50, 50, 60);
}
void drawCat(int x, int y) {
ellipse(x + 0, y + 0, 20, 20);
rect(x + -10, y + 10, 20, 40);
}
void mousePressed() {
drawCat(mouseX, mouseY);
}