Subscribed unsubscribe Subscribe Subscribe

008_for_loop_2D

create 2D list

import processing.opengl.*;
import igeo.*;

size(960,720,IG.GL);

for(int i=0; i < 10; i++){
  for(int j=0; j < 10; j++){
    
    new IPoint(i*10,j*10,0).clr(i*0.1,j*0.1,0);
    new IPoint(i*10,j*10,40).hsb(i*0.1,1,j*0.1);
    
  }
}