Complex gradient loop

well, I can hardly believe it, it is just what I was looking for! Voronoi diagram it is just a great idea for this. How could I limit the number of control points? I see

int N = 4;

and

for( int i=0; i<N; i++ ) {

but if I change int N = 6 I can not make just 6 control points in the loop. Could you please help me?

1 Like