Search
Preparing search index...
The search index is not available
@m0ksem/bronze
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"textures/ColorTexture"
ColorTexture
Class ColorTexture
Hierarchy
Texture
ColorTexture
Index
Constructors
constructor
Properties
alpha
color
engine
loaded
texture
Block
Location
webgl
Texture
Methods
set
Color
Constructors
constructor
new
Color
Texture
(
engine
:
Engine
)
:
ColorTexture
Parameters
engine:
Engine
Returns
ColorTexture
Properties
alpha
alpha
:
boolean
= false
color
color
:
Uint8Array
= new Uint8Array([229, 91, 91, 255])
engine
engine
:
Engine
loaded
loaded
:
boolean
= false
texture
Block
Location
texture
Block
Location
:
number
= -1
webgl
Texture
webgl
Texture
:
any
Methods
set
Color
set
Color
(
r
:
number
, g
:
number
, b
:
number
, a
:
number
)
:
void
set
Color
(
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
Globals
"textures/
Color
Texture"
Color
Texture
constructor
alpha
color
engine
loaded
texture
Block
Location
webgl
Texture
set
Color
Generated using
TypeDoc
Sets color for texture