Circle

class Markup.Shapes.Circle()

This class represents a single circle consisting of a center point and a radius.

Constructors


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

Circle.set(center, radius)
Arguments
  • center (Point2()) – the center point of the circle.

  • radius (number()) – None

Sets the values for the circle

Radius

the circle radius.

Return type

void

setCenter

Circle.setCenter(center)
Arguments

Sets the center of the circle

Return type

void

setFillColor

Circle.setFillColor(color)
Arguments
  • color (Color()) – the fill color

Sets the fill color for this shape

Return type

void

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

Circle.setStrokeColor(color)
Arguments
  • color (Color()) – the stroke color

Sets the stroke color for this shape

Return type

void

setStrokeWidth

Circle.setStrokeWidth(strokeWidth)
Arguments
  • strokeWidth (number()) – the stroke width in pixels

Sets the stroke width for this shape in pixels

Return type

void