Java Reference
In-Depth Information
Line {
startX: 10 startY: 10
endX: 100 endY: 100
stroke: Color.RED
strokeWidth: 2
}
Figure 5.24
Line
Arc
An Arc draws a curved area between two points based on a radius, starting angle,
and length in degrees. The Arc type may be open , meaning the two end points
are not closed (see Figure 5.25); chord , meaning the end points are closed by
drawing a straight line between the two end points (see Figure 5.26); and round ,
meaning the arc is closed by drawing straight lines to the center point of the
ellipse that contains the arc (see Figure 5.27).
Arc {
centerX: 100 centerY: 100
radiusX: 50 radiusY: 50
startAngle: -45 length: 180
type: ArcType.OPEN
stroke: Color.RED
strokeWidth: 2
fill: null
}
Figure 5.25
Arc - OPEN
Search WWH ::




Custom Search