Canvas Nasal API: Difference between revisions

Jump to navigation Jump to search
→‎arcSmallCW: not sure what the 0 does
m (→‎setRotation: http://flightgear.org/forums/viewtopic.php?f=71&t=18727#p174053)
(→‎arcSmallCW: not sure what the 0 does)
Line 354: Line 354:
=== arcSmallCWTo ===
=== arcSmallCWTo ===
=== arcSmallCW ===
=== arcSmallCW ===
'''Parameters:''' (xRadius, yRadius,0,xEnd,yEnd)
Draws an arc with the specified radii, up to the specified end point. The end point is relative to the starting point.
To draw half a circle with radius 20 around the origin:
.moveTo(-20,0)
.arcSmallCW(20,20,0,40,0);
To draw a circle with radius 20 around the origin:
.moveTo(-20,0)
.arcSmallCW(20,20,0,40,0)
.arcSmallCW(20,20,0,-40,0);
=== arcLargeCCWTo ===
=== arcLargeCCWTo ===
=== arcLargeCCW ===
=== arcLargeCCW ===

Navigation menu