Ein weiterer Versuch in anderer Ausführung.
float a, b; PFont f; void setup(){ a = 5; ///für kreis formation zuständig b = 100; ///für verdopplung zuständig size(640,480);///1024,768 f = loadFont("HelveticaNeue-40.vlw"); } void draw(){ stroke(0); smooth(); textFont(f,220); fill(255); text("Kunst",0,150); textFont(f,100); fill(255); text("ist kein",200,250); textFont(f,200); fill(255); text("Luxus,",500,300); textFont(f,90); fill(255); text("sondern eine",0,400); textFont(f,140); fill(255); text("Notwendigkeit.",50,510); textFont(f,75); fill(255); text("Lyonel Feininger",200,700); for(float y =a; y <= width-2*a; y += b/2){ for(float x = a+10; x <= height-a/2; x += 1.5*b){ float f; f = dist(mouseX, mouseY, x, y); float diam; diam = map(f, f, width, height, 14); translate(mouseX*2,mouseY*2); rotate(5); fill(60,140,50,90); ///grün rectMode(CENTER); rect(x,f,70,50); fill(0,84,142,60);///blau rectMode(CENTER); rect(f,y,150,110); fill(27,49,111,70);///dunkel blau rectMode(CENTER); rect(f,f,80,80); fill(166,222,120,80);///helles grün rectMode(CENTER); rect(f,mouseY,40,40); } } }