Skip to content

Instantly share code, notes, and snippets.

@maydemir
maydemir / Water and Sky 2- Escher
Last active August 29, 2015 14:09
Water and Sky 2- Escher
PImage birdImg;
PImage fishImg;
PImage seaImg;
PImage skyImg;
PImage bird1;
PImage bird2;
PImage bird3;
PImage fish1;
float x=0;
@maydemir
maydemir / Water and sky1
Created November 9, 2014 17:36
First Water and sky code
PImage sea2;
PImage sky1;
PImage fish;
PImage birds;
float x;
float y1;
float y2;
ArrayList<PImage> fishImg;
/*
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