Home       Comp Core Examples       Comp Projects

Circle

Circle component draws circles and arcs.

Circle just like any other component also has all the props of BaseComponent object.

The circle takes in following arguments at creation time.

Arg Name Arg Type Explanation
radius Number radius * 2 = circle width
color string It can be any valid CSS string for color.

Following are props unique to Circle Component.

Prop Name Prop Type Explanation
startAngle AniNumber The starting angle of the arc
endAngle AniNumber The ending angle of the arc
lineWidth AniNumber Circle boundry line width
filled AniBoolean A boolean that decides if to fill the circle with color or not

The height prop of the BaseComponent is not implemented since the width and height of a circle are always the same. So animating height or chaging height will have no effect.