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
PImage birdImg; | |
PImage fishImg; | |
PImage seaImg; | |
PImage skyImg; | |
PImage bird1; | |
PImage bird2; | |
PImage bird3; | |
PImage fish1; | |
float x=0; |
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
PImage sea2; | |
PImage sky1; | |
PImage fish; | |
PImage birds; | |
float x; | |
float y1; | |
float y2; | |
ArrayList<PImage> fishImg; |
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
/* | |
Calibration | |
Demonstrates one technique for calibrating sensor input. The | |
sensor readings during the first five seconds of the sketch | |
execution define the minimum and maximum of expected values | |
attached to the sensor pin. | |
The sensor minimum and maximum initial values may seem backwards. | |
Initially, you set the minimum high and listen for anything |