Documentation / @ripl/3d / textureSourceWidth
Function: textureSourceWidth() ​
textureSourceWidth(
source):number
Defined in: 3d/src/core/texture.ts:231
Returns an image source's width in pixels, or 0 when it has no intrinsic size yet.
Parameters ​
| Parameter | Type |
|---|---|
source | TextureSource |
Returns ​
number