Skip to content

RenderGradientStop

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/render-program/RenderGradientStop.ts for the most up-to-date information.

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

Type SerializedRenderGradientStop

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

Source Code

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