Circle

smile.pictures.Circle
object Circle

Circles.

import smile.colors.PresetColor.*
import smile.modeling.*
import smile.modeling.Pos
import smile.pictures.*

val circle = Circle(Pos.Origin, 40, fillWith(Orange), lineWith(Black, 4, round = true))

An orange circle with a black outline

Attributes

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

Members list

Value members

Concrete methods

def apply(center: Pos, radius: Double, fill: Option[FillStyle], line: Option[StrokeStyle]): Shape

A circle of radius centered at center.

A circle of radius centered at center.

Attributes

Throws
IllegalArgumentException

if the radius is negative or not a number

Source
Shapes.scala