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 />

Ellipse<br />

Ellipse represents an ellipse with parameters specifying size and location.<br />

ellipse {<br />

centerX = 50.0<br />

centerY = 50.0<br />

radiusX = 100.0<br />

radiusY = 50.0<br />

fill = Color.CORAL<br />

}<br />

Line<br />

Line is fairly straight forward. Supply start and end coordinates to draw a line between the<br />

two points.<br />

line {<br />

startX = 50.0<br />

startY = 50.0<br />

endX = 150.0<br />

endY = 100.0<br />

}<br />

136

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

Saved successfully!

Ooh no, something went wrong!