class Drawers { int maxsize; Drawer[] all; Drawers(int maxs) { maxsize = maxs; init(); } void init() { all = new Drawer[maxsize]; for(int i=0; i width) pos.setXYZ(pos.x-width,pos.y,pos.z); if(pos.y < 0) pos.y+=(height-50); else if(pos.y > (height-50)) pos.y-=(height-50); } } void draw() { fill(col); noStroke(); ellipse(pos.x,pos.y,siz,siz); } void drawword() { fill(0); noStroke(); text(word,pos.x,pos.y); } void drawletter() { fill(0); noStroke(); text(letter,pos.x,pos.y); } } boolean vocal(char c) { switch(c) { case 'a': case 'A': case 'e': case 'E': case 'i': case 'I': case 'o': case 'O': case 'u': case 'U': return true; default : return false; } } boolean kleinb(char c) { if(int(c)>=int('a') && int(c)<=int('z')) return true; else return false; } boolean grossb(char c) { if(int(c)>=int('A') && int(c)<=int('Z')) return true; else return false; }