Interface: BaseGradientOptions

BaseGradientOptions

Represents the style options for a linear gradient fill.

Properties:
Name Type Default Description
colorStops { offset : number, color : ColorSource }[]

Array of colors stops to use in the gradient

textureSize number

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 TextureSpace

Whether coordinates are 'global' or 'local'

type GradientType

The type of gradient

wrapMode WRAP_MODE 'clamp-to-edge'

The wrap mode of the gradient. This can be 'clamp-to-edge' or 'repeat'.

Members

colorStops { offset : number, color : ColorSource }[]

Array of colors stops to use in the gradient

textureSize number

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 TextureSpace

Whether coordinates are 'global' or 'local'

type GradientType

The type of gradient

wrapMode WRAP_MODE

The wrap mode of the gradient. This can be 'clamp-to-edge' or 'repeat'.

Default Value:
  • 'clamp-to-edge'