API Reference > imodeljs-frontend > Rendering > RenderSystem > getGradientTexture getGradientTexture Method Obtain a texture created from a gradient. getGradientTexture(_symb: Symb, _imodel: IModelConnection): undefined | RenderTexture 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 - undefined | RenderTexture A texture created from the gradient image, or undefined if the texture could not be created. Defined in core/frontend/src/render/RenderSystem.ts Line 481 Last Updated: 11 June, 2024