mardi 16 octobre 2012

Line

- Line(x,y,x1,y1)


Draw a Line. 

- x : the x-coordinate of the first point.
- y : the y-coordinate of the first point. 

- x : the x-coordinate of the second point.
- y : the y-coordinate of the second point. 


Example: 

this.setup = function()
{
   NCL = parent.NCL();
}
this.draw = function(scene)
{
   NCL.context.strokeStyle = "red";
   NCL.line(10,10,100,100);
}

Aucun commentaire:

Enregistrer un commentaire