Subscribed unsubscribe Subscribe Subscribe

009_for_loop_3D_RGB_Box

create RGB Box
with 3D array

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

size(960,720,IG.GL);

int m = 20; // max
double mi = 1.0/m;

for (int i=0; i<m; i++){
  for (int j=0; j<m; j++){
    for (int k=0; k<m; k++){
      
      new IPoint(i,j,k).clr(mi*i,mi*j,mi*k);
      
    }
  }
}