void setup(){ size (600,600); background(0); smooth(); float xM =width/2; float yM = height/2; fill(255); stroke (0); kringel (6,240,7,3,xM,yM,5,1); fill(0); stroke(255); kringel(16,230,7,1,xM,yM,4,1.4); fill(207,255,0); stroke(0,255,31); kringel (36,200,7,8,xM,yM,5,2.6); fill(245,237,0); stroke(255,34,0); kringel (20,96,7,5,xM,yM,4,1.8); } void kringel(float groesse,float r, float anzahlPunkte, float weight, float theXM, float theYM, float index, float teiler){ if (index<=0) return; float t= teiler; float anzahl= TWO_PI/anzahlPunkte; for(float phi= 0; phi< TWO_PI; phi=phi+anzahl){ float x = theXM + r * cos(phi); float y = theYM + r * sin (phi); strokeWeight (weight); ellipse (x,y,groesse,groesse); kringel (groesse/t, r/t, anzahlPunkte, weight/t, x, y, index-1, teiler); } }