Shape

object Shape
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

final case
class Box(dimensions: Rectangle, fill: Fill, stroke: Stroke, lighting: LightingModel, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape

Draws a coloured box that occupies a rectangle on the screen.

Draws a coloured box that occupies a rectangle on the screen.

Companion
object
object Box
Companion
class
final case
class Circle(center: Point, radius: Int, fill: Fill, stroke: Stroke, lighting: LightingModel, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape

Draws a coloured circle from it's center outwards.

Draws a coloured circle from it's center outwards.

Companion
object
object Circle
Companion
class
final case
class Line(start: Point, end: Point, stroke: Stroke, lighting: LightingModel, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape

Draws a straight line.

Draws a straight line.

Companion
object
object Line
Companion
class
final case
class Polygon(vertices: List[Point], fill: Fill, stroke: Stroke, lighting: LightingModel, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape

Draws an arbitrary polygon with up to 16 vertices.

Draws an arbitrary polygon with up to 16 vertices.

Companion
object
object Polygon
Companion
class

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def fillType(fill: Fill): float
def gradientUniforms(fill: Fill): List[(Uniform, vec4)]
def toShaderData(shape: Shape, bounds: Rectangle): ShaderData

Concrete fields

lazy
val derived$CanEqual: CanEqual[Shape, Shape]