Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

alpha

alpha: boolean = false

color

color: Uint8Array = new Uint8Array([229, 91, 91, 255])

engine

engine: Engine

loaded

loaded: boolean = false

textureBlockLocation

textureBlockLocation: number = -1

webglTexture

webglTexture: any

Methods

setColor

  • setColor(r: number, g: number, b: number, a: number): void
  • setColor(hexColor: string): void
  • Sets color for texture

    Parameters

    • r: number

      number from 0 to 255

    • g: number

      number from 0 to 255

    • b: number

      number from 0 to 255

    • a: number

      number from 0 to 255

    Returns void

  • Sets color for texture

    Parameters

    • hexColor: string

    Returns void

Generated using TypeDoc