006_for_loop

use loop
OpenGL error 1281 at top endDraw(): invalid value

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

size(960,720,IG.GL);

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