This file contains 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(800, 700); | |
stroke(100, 100, 255, 80) | |
background(255) | |
frameRate(30) | |
fill(245, 242, 195) | |
rect(0, 0, 800, 700) | |
fill(40, 49, 48) |
This file contains 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
# global img | |
circleY = 300 | |
circleDirection = 1 | |
position = 0 | |
startTime = 0 | |
rectY = 200 | |
rectDirection =1 | |
def drawLevel1(): |
This file contains 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
""" | |
Greta Villani | |
9/16/2020 | |
Homework 1 | |
""" | |
c = color(255,150,150) | |
fishTailLine = 60 | |
bodyLength = 180 | |
bodyHeight = 80 | |
eyeX = 285 |
This file contains 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
import random | |
print("hello, rorys!") | |
if random.random() < .5: | |
print("hi!") | |
else: | |
print("bye!") |