Ellipse

smile.pictures.Ellipse
object Ellipse

Factory object for creating ellipses.

Attributes

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

Members list

Value members

Concrete methods

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

Creates an ellipse represented as an Arc object. An ellipse is specified by its center, the lengths of its semi-major and semi-minor axes, and optional styles for filling and stroking.

Creates an ellipse represented as an Arc object. An ellipse is specified by its center, the lengths of its semi-major and semi-minor axes, and optional styles for filling and stroking.

Value parameters

center

The center position of the ellipse.

fillStyle

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

semiMajorAxis

The length of the semi-major axis in pixels.

semiMinorAxis

The length of the semi-minor axis in pixels.

strokeStyle

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

Attributes

Returns

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