//practice //oct 02 // float.x.y.w.h. // int rbg /// not done string title="practice Oct" author"Tye",20,20,20); float x=400,y=300,w=50,h=80,sealevel //int r,g,b; void setup(){ ///init. size(800,600); } void Draw(){ /// next frame scene(); action(); } void scene (){ /// sky sea grass button etc. background(200,200,255); text(title,20,300); rectMode(CORNERS); rect(0,sealevel,width,height); rectMode(CORNER); grass(); waves(); } void grass() { // float grass X=0;,grasssX2=10,grassskip=20; if ( (frameCount / 30 >0) while(grass < width){ fill(0,150,0); line(grassX,height-50,grassY,height-5); grassX= grassY+20; } } void waves (){