Calico Scheme Reference

From IPRE Wiki
Revision as of 18:17, 14 December 2012 by Doug Blank (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Click on a command for a definition and an example of usage. (Return to Calico Processing.)

Category

window( width, height )

Shape

2D Primitives

arc( x, y, width, height, start-angle, end-angle )

TWO_PI (6.28318...)


2D Primitives



Draw an arc defined as a fragment of an ellipse.


arc(x, y, width, height, start-angle, end-angle)


This example draws an arc that is a part of the ellipse centered at (100, 100), with width 150 and height 75, starting at an angle of 0 radians and ending at angle that is the number of radians equivalent to 45°.

ellipseMode(CENTER)
arc( 100, 100, 150, 75, 0, radians(45) )


Back to Index


2D Primitives



Draw an arc defined as a fragment of an ellipse.


arc(x, y, width, height, start-angle, end-angle)


This example draws an arc that is a part of the ellipse centered at (100, 100), with width 150 and height 75, starting at an angle of 0 radians and ending at angle that is the number of radians equivalent to 45°.

ellipseMode(CENTER)
arc( 100, 100, 150, 75, 0, radians(45) )


Back to Index