/** 3D-function experiment by guru */ void setup() { size(300,300,P2D); } void draw() { background(255); fill(0); for( int x = 0; x < 10; x++ ) { for( int y = 0; y < 10; y++) { float r = sin(radians(x*y)*map(mouseX,0,width,0,6) + map(mouseY,0,height,0,6))*15+17; ellipse( 15 + x * 30 , 15 + y * 30, r, r ); } } }