final case
class Graphic[M <: Material](material: M, crop: Rectangle, position: Point, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip) extends RenderNode with Cloneable with SpatialModifiers[Graphic[M]]

Graphics are used to draw images on the screen, in a cheap efficient but expressive way. Graphics party trick is it's ability to crop images.

trait Serializable
trait Product
trait Equals
trait Cloneable
trait SceneNode
class Object
trait Matchable
class Any

Value members

Concrete methods

def flipHorizontal(isFlipped: Boolean): Graphic[M]
def flipVertical(isFlipped: Boolean): Graphic[M]
def modifyMaterial[MB <: Material](alter: M => MB): Graphic[MB]
def moveBy(pt: Point): Graphic[M]
def moveBy(x: Int, y: Int): Graphic[M]
def moveTo(pt: Point): Graphic[M]
def moveTo(x: Int, y: Int): Graphic[M]
def rotateBy(angle: Radians): Graphic[M]
def rotateTo(angle: Radians): Graphic[M]
def scaleBy(amount: Vector2): Graphic[M]
def scaleBy(x: Double, y: Double): Graphic[M]
def transformBy(positionDiff: Point, rotationDiff: Radians, scaleDiff: Vector2): Graphic[M]
def transformTo(newPosition: Point, newRotation: Radians, newScale: Vector2): Graphic[M]
def withCrop(newCrop: Rectangle): Graphic[M]
def withCrop(x: Int, y: Int, width: Int, height: Int): Graphic[M]
def withDepth(newDepth: Depth): Graphic[M]
def withFlip(newFlip: Flip): Graphic[M]
def withMaterial[MB <: Material](newMaterial: MB): Graphic[MB]
def withPosition(newPosition: Point): Graphic[M]
def withRef(newRef: Point): Graphic[M]
def withRef(x: Int, y: Int): Graphic[M]
def withRotation(newRotation: Radians): Graphic[M]
def withScale(newScale: Vector2): Graphic[M]

Inherited methods

def productElementNames: Iterator[String]
Inherited from
def productIterator: Iterator[Any]
Inherited from

Concrete fields

val size: Size
val x: Int
val y: Int