Shape

object Shape
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Shape.type

Type members

Classlikes

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

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, eventHandlerEnabled: Boolean, eventHandler: ((Circle, GlobalEvent)) => Option[GlobalEvent], rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape[Circle]

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, eventHandlerEnabled: Boolean, eventHandler: ((Line, GlobalEvent)) => Option[GlobalEvent], rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape[Line]

Draws a straight line.

Draws a straight line.

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

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

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def fillType(fill: Fill): Float
def toShaderData(shape: Shape[_], bounds: Rectangle): ShaderData

Givens

Givens

given derived$CanEqual[T_$_L <: Shape[_], T_$_R <: Shape[_]](implicit x$0: CanEqual[T_$_L, T_$_R]): CanEqual[Shape[T_$_L], Shape[T_$_R]]