Skip to content

RenderGradientStop

Overview

A gradient stop for linear/radial gradients

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class RenderGradientStop

import { RenderGradientStop } from 'scenerystack/alpenglow';

Constructor

new RenderGradientStop( ratio : number, program : RenderProgram )

Instance Methods

withProgram( program : RenderProgram ) : RenderGradientStop

serialize() : SerializedRenderGradientStop

Static Methods

evaluate( context : RenderEvaluationContext, stops : RenderGradientStop[], t : number ) : Vector4

deserialize( obj : SerializedRenderGradientStop ) : RenderGradientStop

Type SerializedRenderGradientStop

import type { SerializedRenderGradientStop } from 'scenerystack/alpenglow';

Source Code

See the source for RenderGradientStop.ts in the alpenglow repository.