float horizon = 200 void setup() { size(500,500); frameRate(rate); } void draw() { scene(); bird(); } void scene(){ // making scene rectMode(CORNER); // sky fill(0,0,255); rect(0,0,500,horizon); // grass fill(100,255,0); rect(0,horizon,500,500); }