Skip to content

Instantly share code, notes, and snippets.

"""
Greta Villani
9/16/2020
Homework 1
"""
c = color(255,150,150)
fishTailLine = 60
bodyLength = 180
bodyHeight = 80
eyeX = 285
c1 = color(70, 160, 500)
c2 = color (200, 200, 255)
def setup():
size(600, 600)
stroke(155, 155, 255, 50)
frameRate(24)
global c1
global c2
"""
Greta Villani
Coding
Rory Soloman
September 29 2020
I was trying to have the circles bounce back down from the top, but I couldn't grasp how
to do that from the class notes.
"""
size(600,600)
background(255)
quad(0,0, 45,25, 45,95, 0,70)
quad(45,25, 90,0, 90,70, 45,95)
def setup():
size(750,750)
background(100,150,255)
fill(153)
#coral line 2
photo = loadImage("CORAL_BG.png")
image(photo, 0, 0)
#big rocks lines 1 + 3
fishX = 1
fishC = 1
fishY = 1
fishDirection = 1
def setupObstacles():
global photo
photo = loadImage("swordfish2_smally.png")