API Reference > imodeljs-frontend > Views > SkyGradient SkyGradient Class A SkyBox drawn as a sphere with a gradient mapped to its interior surface. see SkyBox.createFromJSON see SkyBoxProps for descriptions of the color and exponent properties. Extends SkyBox Methods Name Description constructor(sky?: SkyBoxProps): SkyGradient Construct a SkyGradient from its JSON representation. toJSON(): SkyBoxProps Inherited methods Name Inherited from Description createFromJSON(json?: SkyBoxProps): SkyBox Static SkyBox Instantiate a SkyBox from its JSON representation. Properties Name Type Description groundColor Readonly ColorDef groundExponent Readonly number nadirColor Readonly ColorDef skyColor Readonly ColorDef skyExponent Readonly number twoColor Readonly boolean If true, a 2-color gradient is used (nadir and zenith colors only); if false a 4-color gradient is used. zenithColor Readonly ColorDef Inherited properties Name Type Inherited from Description display boolean SkyBox Whether or not the skybox should be displayed. Defined in core/frontend/src/DisplayStyleState.ts Line 841 Last Updated: 11 June, 2024