- Triangle(x,y,x1,y1,x2,y2)
Draw a Triangle.
- x : the x-coordinate of the first point.
- y : the y-coordinate of the first point.
- x1 : the x-coordinate of the second point.
- y1: the y-coordinate of the second point.
- x2 : the x-coordinate of the third point.
- y2: the y-coordinate of the third point.
Example:
this.setup = function()
{
NCL = parent.NCL();
}
this.draw = function(scene)
{
NCL.context.fillStyle = "red";
NCL.triangle(10,10,10,20,20,20);
}
Aucun commentaire:
Enregistrer un commentaire