Java Reference
In-Depth Information
Figure 5.26
Arc - CHORD
Figure 5.27
Arc - ROUND
Ellipse
An Ellipse shape is defined using a center point with radii for both the x and y
axis. The following listing shows how to create an ellipse centered at point 100,
50 with an x axis radius of 50 and a y axis radius of 10. This example creates an
outlined ellipse as shown in Figure 5.28. If you need to create a filled ellipse, you
can set the fill variable to a color or gradient.
Ellipse {
centerX: 100 centerY: 50
radiusX: 50 radiusY: 25
stroke: Color.RED
strokeWidth: 2
fill: null
}
Figure 5.28
Ellipse
Search WWH ::




Custom Search