002_ICurve

create line

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

size(960,720,IG.GL);

new IPoint(0,0,0).clr(255,255,255);

new ICurve(0,0,0, 30,30,30); //black
new ICurve(0,-10,0, 30,10,20).clr(1.0,0,0); // red
new ICurve(0,-20,0, 30,-10,10).clr(0,1.0,0); // green
new ICurve(0,-30,0, 30,-30,0).clr(0,0,255,128); //blue

/*
object.clr(r,g,b,(alpha));
object.clr(gray scale,(alpha));

(float,float,float,(float))
0.0 to 1.0

(int,int,int,(int))
0 to 255
*/