class TreeRect { int _x,_y,_w,_h; int _blend; TreeRect(int $x, int $y, int $w, int $h){ _x=$x; _y=$y; _w=$w; _h=$h; _blend=255; } void update(){ _blend-=10; } }