Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Text

Hierarchy

Implements

Index

Constructors

constructor

  • new Text(str?: string, font?: Font, characterSize?: number): Text
  • Parameters

    • Optional str: string
    • Optional font: Font
    • Optional characterSize: number

    Returns Text

Methods

_raw

  • _raw(): any

getFillColor

getGlobalBounds

getLocalBounds

getOrigin

getOutlineColor

  • getOutlineColor(): Color

getOutlineThickness

  • getOutlineThickness(): number

getPosition

getRotation

  • getRotation(): number

getScale

move

rotate

  • rotate(angle: number): void

scale

setCharacterSize

  • setCharacterSize(characterSize: number): void

setFillColor

  • setFillColor(color: number | Color): void

setFont

  • setFont(font: Font): void

setLetterSpacing

  • setLetterSpacing(letterSpacing: number): void

setLineSpacing

  • setLineSpacing(lineSpacing: number): void

setOrigin

setOutlineColor

  • setOutlineColor(color: number | Color): void

setOutlineThickness

  • setOutlineThickness(thickness: number): void

setPosition

  • setPosition(x: number, y: number): void
  • setPosition(pos: PointType<Vector2F>): void

setRotation

  • setRotation(rotation: number): void

setScale

setString

  • setString(str: string): void

setStyle

  • setStyle(style: Style): void

Generated using TypeDoc