Preparing search index...
The search index is not available
@turbowarp/types-tw
@turbowarp/types-tw
scratch-render
RenderWebGL
Silhouette
Class Silhouette
Index
Constructors
constructor
Properties
_color
Data
_height
_width
Methods
_get
Color
color
At
Linear
color
At
Nearest
is
Touching
Linear
is
Touching
Nearest
unlazy
update
_update
Canvas
Constructors
constructor
new
Silhouette
()
:
Silhouette
Returns
Silhouette
Properties
_color
Data
_colorData
:
null
|
Uint8ClampedArray
_height
_height
:
number
_width
_width
:
number
Methods
_get
Color
_getColor
(
silhouette
:
Silhouette
,
x
:
number
,
y
:
number
,
destination
?:
Uint8ClampedArray
,
)
:
Uint8ClampedArray
Parameters
silhouette
:
Silhouette
x
:
number
y
:
number
Optional
destination
:
Uint8ClampedArray
Returns
Uint8ClampedArray
color
At
Linear
colorAtLinear
(
textureCoordinate
:
V3
,
destination
?:
Uint8ClampedArray
,
)
:
Uint8ClampedArray
Parameters
textureCoordinate
:
V3
Optional
destination
:
Uint8ClampedArray
Returns
Uint8ClampedArray
color
At
Nearest
colorAtNearest
(
textureCoordinate
:
V3
,
destination
?:
Uint8ClampedArray
,
)
:
Uint8ClampedArray
Parameters
textureCoordinate
:
V3
Optional
destination
:
Uint8ClampedArray
Returns
Uint8ClampedArray
is
Touching
Linear
isTouchingLinear
(
textureCoordinate
:
V3
)
:
void
Parameters
textureCoordinate
:
V3
Returns
void
is
Touching
Nearest
isTouchingNearest
(
textureCoordinate
:
V3
)
:
void
Parameters
textureCoordinate
:
V3
Returns
void
unlazy
unlazy
()
:
void
Returns
void
update
update
(
image
:
BitmapData
,
isPremultiplied
?:
boolean
)
:
void
Parameters
image
:
BitmapData
Image data
Optional
isPremultiplied
:
boolean
Whether alpha is premultiplied. Defaults to false.
Returns
void
Static
_update
Canvas
_updateCanvas
()
:
HTMLCanvasElement
Returns
HTMLCanvasElement
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_color
Data
_height
_width
Methods
_get
Color
color
At
Linear
color
At
Nearest
is
Touching
Linear
is
Touching
Nearest
unlazy
update
_update
Canvas
@turbowarp/types-tw
Loading...
Image data