Graphic

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

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.

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.

Companion
object
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
def flipVertical(isFlipped: Boolean): Graphic
def moveBy(pt: Point): Graphic
def moveBy(x: Int, y: Int): Graphic
def moveTo(pt: Point): Graphic
def moveTo(x: Int, y: Int): Graphic
def rotateBy(angle: Radians): Graphic
def rotateTo(angle: Radians): Graphic
def scaleBy(amount: Vector2): Graphic
def scaleBy(x: Double, y: Double): Graphic
def transformBy(positionDiff: Point, rotationDiff: Radians, scaleDiff: Vector2): Graphic
def transformTo(newPosition: Point, newRotation: Radians, newScale: Vector2): Graphic
def withCrop(newCrop: Rectangle): Graphic
def withCrop(x: Int, y: Int, width: Int, height: Int): Graphic
def withDepth(newDepth: Depth): Graphic
def withFlip(newFlip: Flip): Graphic
def withMaterial(newMaterial: Material): Graphic
def withPosition(newPosition: Point): Graphic
def withRef(newRef: Point): Graphic
def withRef(x: Int, y: Int): Graphic
def withRotation(newRotation: Radians): Graphic
def withScale(newScale: Vector2): Graphic

Inherited methods

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

Concrete fields

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