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
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 |
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 | |
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. | |
""" |
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
size(600,600) | |
background(255) | |
quad(0,0, 45,25, 45,95, 0,70) | |
quad(45,25, 90,0, 90,70, 45,95) |
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(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 |
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
fishX = 1 | |
fishC = 1 | |
fishY = 1 | |
fishDirection = 1 | |
def setupObstacles(): | |
global photo | |
photo = loadImage("swordfish2_smally.png") |