Star5

smile.pictures.Star5
object Star5

Five-pointed stars with a point straight up.

import smile.colors.PresetColor.*
import smile.modeling.*

val star = Star5(40, 16, Pos.Origin, fillWith(Gold), lineWith(Black, 2, round = true))

A golden star with a black outline

Attributes

Source
Shapes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Star5.type

Members list

Value members

Concrete methods

def apply(width: Double, height: Double, cuspRadius: Double, fill: Option[FillStyle], line: Option[StrokeStyle]): Shape

The largest star that fits in a box width wide and height high, with its inner corners cuspRadius from its center of symmetry, centered at the origin.

The largest star that fits in a box width wide and height high, with its inner corners cuspRadius from its center of symmetry, centered at the origin.

Attributes

Source
Shapes.scala
def apply(width: Double, height: Double, cuspRadius: Double, center: Pos, fill: Option[FillStyle], line: Option[StrokeStyle]): Shape

The largest star that fits in a box width wide and height high, with its inner corners cuspRadius from its center of symmetry, its box centered at center.

The largest star that fits in a box width wide and height high, with its inner corners cuspRadius from its center of symmetry, its box centered at center.

Attributes

Throws
IllegalArgumentException

if a size is negative or not a number

Source
Shapes.scala
def apply(circumradius: Double, cuspRadius: Double, center: Pos, fill: Option[FillStyle], line: Option[StrokeStyle]): Shape

A star with its points circumradius and its inner corners cuspRadius from its center of symmetry, its box centered at center.

A star with its points circumradius and its inner corners cuspRadius from its center of symmetry, its box centered at center.

Attributes

Throws
IllegalArgumentException

if a radius is negative or not a number

Source
Shapes.scala