Circle

smile.pictures.Circle
object Circle

Factory object for creating circles.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Circle.type

Members list

Value members

Concrete methods

def apply(center: Pos, radius: Double, fillStyle: Option[FillStyle], strokeStyle: Option[StrokeStyle]): VectorGraphic

Creates a circle represented as an Arc object. This is because a circle is a special case of an arc that spans 360 degrees.

Creates a circle represented as an Arc object. This is because a circle is a special case of an arc that spans 360 degrees.

Value parameters

center

The center position of the circle.

fillStyle

Optional fill style to apply to the circle. Determines the inside color.

radius

The radius of the circle in pixels.

strokeStyle

Optional stroke style to apply to the circle's perimeter. Defines the outline appearance.

Attributes

Returns

A VectorGraphic instance representing the circle, specifically an Arc with full angular extent.