- Curve(location-origin,location-end,location-control)
Draw a Curve.
- location-origin : the first point (NCL2dLocation object).
- location-end : the second point (NCL2dLocation object).
- location-control : the Bezier control point (Determine the curve) (NCL2dLocation object).
Example:
this.setup = function()
{
NCL = parent.NCL();
}
this.draw = function(scene)
{
NCL.context.strokeStyle = "red";
NCL.curve(
new NCL2dLocation(10,10),
new NCL2dLocation(50,50),
new NCL2dLocation(20,15)
);
}
Aucun commentaire:
Enregistrer un commentaire