- rect(x,y,width,height)
Draw a Rectangle.
- x : the x-coordinate of the rectangle.
- y : the y-coordinate of the rectangle.
- width : the width of the rectangle.
- height : the height of the rectangle.
Example:
this.setup = function()
{
NCL = parent.NCL();
}
this.draw = function(scene)
{
NCL.context.fillStyle = "red";
NCL.rect(10,10,20,50);
}
Aucun commentaire:
Enregistrer un commentaire