Created
January 31, 2017 06:55
-
-
Save z3t0/b7f2a01a0b7a5d1d58e61715936ae5a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def setup(): | |
size(400, 400) | |
reset() | |
def keyPressed(): | |
reset() | |
def reset(): | |
background(51) | |
draw_once() | |
def draw_once(): | |
#neck | |
fill(180, 114, 27) | |
rect(90, 139, 55, 70) | |
#two front feet | |
rect(100, 240, 10, 89) | |
rect(110, 240,30, 89) | |
#two back feet | |
rect(240, 240, 30, 89) | |
rect(253, 240, 30, 89) | |
#ears | |
ellipse(120, 110, 20, 80) | |
ellipse(130, 110, 20, 80) | |
#head and body | |
ellipse(100, 150, 100, 50) | |
ellipse(192, 220, 210, 90) | |
def draw(): | |
#do nothing | |
print("empty line") | |
def mouseClicked(): | |
reset() | |
fill(203, 156, 95) | |
rect(mouseX, mouseY, 20,50) | |
fill(255, 0, 0) | |
ellipse(mouseX, mouseY, 20, 20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment