- Square(x,y,size)
Draw a Square.
- x : the x-coordinate of the square.
- y : the y-coordinate of the square.
- size : the size of the square.
Example:
this.setup = function()
{
NCL = parent.NCL();
}
this.draw = function(scene)
{
NCL.context.fillStyle = "red";
NCL.square(10,10,30);
}
Aucun commentaire:
Enregistrer un commentaire