StarPentagon

smile.pictures.StarPentagon
object StarPentagon

Factory object for creating star-shaped pentagons.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(width: Double, height: Double, cuspRadius: Double, fillStyle: Option[FillStyle], strokeStyle: Option[StrokeStyle]): VectorGraphic

Creates a star pentagon with specified dimensions, fill, and stroke styles.

Creates a star pentagon with specified dimensions, fill, and stroke styles.

Value parameters

cuspRadius

Radius from the center to the inner corners of the star.

fillStyle

Optional fill style for the star pentagon.

height

Height of the bounding box of the star pentagon.

strokeStyle

Optional stroke style for the star pentagon.

width

Width of the bounding box of the star pentagon.

Attributes

Returns

A VectorGraphic representing the star pentagon.

Throws
IllegalArgumentException

If any of the dimensions are negative.

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

Creates a star pentagon with specified dimensions, center position, fill, and stroke styles.

Creates a star pentagon with specified dimensions, center position, fill, and stroke styles.

Value parameters

center

Center position of the star pentagon.

cuspRadius

Radius from the center to the inner corners of the star.

fillStyle

Optional fill style for the star pentagon.

height

Height of the bounding box of the star pentagon.

strokeStyle

Optional stroke style for the star pentagon.

width

Width of the bounding box of the star pentagon.

Attributes

Returns

A VectorGraphic representing the star pentagon centered at the given position.

Throws
IllegalArgumentException

If any of the dimensions are negative.

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

Creates a star pentagon with specified circumradius, cusp radius, center position, fill, and stroke styles.

Creates a star pentagon with specified circumradius, cusp radius, center position, fill, and stroke styles.

Value parameters

center

Center position of the star pentagon.

circumradius

Radius from the center to the outer corners of the star.

cuspRadius

Radius from the center to the inner corners of the star.

fillStyle

Optional fill style for the star pentagon.

strokeStyle

Optional stroke style for the star pentagon.

Attributes

Returns

A VectorGraphic representing the star pentagon centered at the given position.

Throws
IllegalArgumentException

If either circumradius or cuspRadius are negative.