class Pelo{ float x1, y1, x2, y2; //proprietà classe color colore; ////////////////////////constructor, funzione-setup Pelo(float x, float y, color c){ colore = c; x1 = x; y1 = y; x2 = x1+random(-11,11); y2 = y1+random(-4,4); } ////////////////////////method, funzioni nel class (f.di disegno) void disegna(){ stroke(colore); float x3 = x2+random(-12,12); float y3 = y2+random(-25,25); line(x1,y1,x3,y3); } }