getGradientTexture Method

Beta

Obtain a texture created from a gradient.

getGradientTexture(_symb: Symb, _imodel: IModelConnection): RenderTexture | undefined

note If a texture matching the specified gradient already exists, it will be returned. Otherwise, the newly-created texture will be cached on the IModelConnection such that a subsequent call to getGradientTexture with an equivalent gradient will return the previously-created texture.

Parameter Type Description
_symb Symb The description of the gradient.
_imodel IModelConnection The IModelConnection with which the texture is associated.

Returns - A texture created from the gradient image, or undefined if the texture could not be created.

Defined in

Last Updated: 08 January, 2020