createGradientTexture
createGradientTexture(
width
,colorStops
):undefined
|Texture
<Resource
>
Creates a linear gradient texture.
Parameters
• width: number
The width of the texture.
• colorStops: object
[]
An array of objects, each with an offset and a color.
Returns
undefined
| Texture
<Resource
>
- A PIXI texture of the linear gradient.