void buildalbumtree(){ noStroke(); fill(0); textFont(sfont); textSize(11); b = b+(ziel-b)*0.02; a = a+(b-a)*0.025; bend = a; bendr = radians(bend); if (a>5){ ziel = -10; } if (a<-5){ ziel = 10; } translate(0,450); for(int i=0;i 0){ float mappedcoord = map(topalbumsarray[idalbum].releasejoined, topalbumsarray[low].releasejoined, topalbumsarray[high].releasejoined,50-navoffset+navpos,750+navoffset+navpos); pushMatrix(); translate(mappedcoord,0); abend *= 0.8f+(noise(mappedcoord,abend)*0.45f); float dreh = radians(-50)+abend; rotate(dreh); fill(108,0,0); String textdesc = topalbumsarray[idalbum].artist+" "+topalbumsarray[idalbum].name+" "+topalbumsarray[idalbum].releasemonth+"/"+topalbumsarray[idalbum].releaseyear; text(textdesc,0,0); image(topalbumsarray[idalbum].cover, textWidth(textdesc)+10,-75,75,75); popMatrix(); } }