Interface: BaseGradientOptions
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/fill/FillGradient.d.ts:22
Represents the style options for a linear gradient fill.
Standard
Extended by
Properties
colorStops?
> optional colorStops?: object[]
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/fill/FillGradient.d.ts:26
Array of colors stops to use in the gradient
color
> color: ColorSource
offset
> offset: number
textureSize?
> optional textureSize?: number
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/fill/FillGradient.d.ts:38
The size of the texture to use for the gradient - this is for advanced usage. The texture size does not need to match the size of the object being drawn. Due to GPU interpolation, gradient textures can be relatively small! Consider using a larger texture size if your gradient has a lot of very tight color steps
textureSpace?
> optional textureSpace?: TextureSpace
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/fill/FillGradient.d.ts:31
Whether coordinates are 'global' or 'local'
type?
> optional type?: GradientType
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/fill/FillGradient.d.ts:24
The type of gradient
wrapMode?
> optional wrapMode?: WRAP_MODE
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/fill/FillGradient.d.ts:44
The wrap mode of the gradient. This can be 'clamp-to-edge' or 'repeat'.
Default
'clamp-to-edge'