class Letter { float x,y; char c; color clr; Letter(float x_, float y_, char c_, color clr_) { x=x_; y=y_; c=c_; clr = clr_; } void display(){ //textFont (f,16); fill(clr); text(c,x,y); } void move1A(){ x=x+30; if (x>= (width+90)) { y = y+20; } } void move1B(){ x=x-30; if (x>= (width-90)) { y = y-20; } } void move2A(){ y=y+30; if (y >= (height+90)){ x=x+20; } } void move2B(){ y=y-30; if (y >= (height-90)){ x=x-20; } } } //----------------------------------------------