09.04.2018 Views

tornadofx-guide

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9. Shapes and Animation<br />

Arc<br />

Arc represents an arc object defined by a center, start angle, angular extent (length of the<br />

arc in degrees), and an arc type ( OPEN , CHORD , or ROUND ) (Figure 9.2)<br />

arc {<br />

centerX = 200.0<br />

centerY = 200.0<br />

radiusX = 50.0<br />

radiusY = 50.0<br />

startAngle = 45.0<br />

length = 250.0<br />

type = ArcType.ROUND<br />

}<br />

Figure 9.2<br />

Circle<br />

Circle represents a circle with the specified radius and center .<br />

circle {<br />

centerX = 100.0<br />

centerY = 100.0<br />

radius = 50.0<br />

}<br />

134

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!