Shape

sealed

Parent type for all Shapes, which are visible elements draw mathematically that require no textures. Shapes are quite versitile and support different fills and stroke effects, even lighting. Due to the way strokes around shapes are drawn, the corners are always rounded.

Companion
object
trait Cloneable
trait SceneNode
class Object
trait Matchable
class Any
class Box
class Circle
class Line
class Polygon

Value members

Abstract methods

def flipHorizontal(isFlipped: Boolean): Shape
def flipVertical(isFlipped: Boolean): Shape
def moveBy(pt: Point): Shape
def moveBy(x: Int, y: Int): Shape
def moveTo(pt: Point): Shape
def moveTo(x: Int, y: Int): Shape
def rotateBy(angle: Radians): Shape
def rotateTo(angle: Radians): Shape
def scaleBy(amount: Vector2): Shape
def scaleBy(x: Double, y: Double): Shape
def transformBy(positionDiff: Point, rotationDiff: Radians, scaleDiff: Vector2): Shape
def transformTo(newPosition: Point, newRotation: Radians, newScale: Vector2): Shape
def withDepth(newDepth: Depth): Shape
def withFlip(newFlip: Flip): Shape
def withPosition(newPosition: Point): Shape
def withRotation(newRotation: Radians): Shape
def withScale(newScale: Vector2): Shape

Concrete methods

Inherited methods

Inherited from
SceneNode
def flip: Flip
Inherited from
SceneNode
Inherited from
SceneNode
def ref: Point
Inherited from
SceneNode
Inherited from
SceneNode
Inherited from
SceneNode
def size: Size
Inherited from
RenderNode
def withRef(x: Int, y: Int): Shape
Inherited from
SpatialModifiers
def withRef(newRef: Point): Shape
Inherited from
SpatialModifiers