Circle
- class Markup.Shapes.Circle()
This class represents a single circle consisting of a center point and a radius.
Constructors
Methods
Constructors
- Circle.constructor()
- Return type
Circle
Methods
getCenter
- Circle.getCenter()
Gets the center of the circle
- Returns
the circle center
- Return type
Point2
getFillColor
- Circle.getFillColor()
Gets the fill color for this shape
- Returns
the fill color
- Return type
Color
getFillOpacity
- Circle.getFillOpacity()
Gets the fill opacity for this shape
- Returns
the fill opacity
- Return type
number
getRadius
- Circle.getRadius()
Gets the radius of the circle
- Returns
the circle radius
- Return type
number
getStrokeColor
- Circle.getStrokeColor()
Gets the stroke color for this shape
- Returns
the stroke color
- Return type
Color
getStrokeWidth
- Circle.getStrokeWidth()
Gets the stroke width for this shape in pixels
- Returns
the stroke width in pixels
- Return type
number
set
setCenter
setFillColor
setFillOpacity
- Circle.setFillOpacity(fillOpacity)
- Arguments
fillOpacity (
number()
) – the fill opacity
Sets the fill opacity for this shape
- Return type
void
setRadius
- Circle.setRadius(radius)
- Arguments
radius (
number()
) – the circle radius
Sets the radius of the circle
- Return type
void
setStrokeColor
setStrokeWidth
- Circle.setStrokeWidth(strokeWidth)
- Arguments
strokeWidth (
number()
) – the stroke width in pixels
Sets the stroke width for this shape in pixels
- Return type
void