Skip to content

RenderLinearRange

Overview

Represents a section of a gradient's "color stop" space.

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

Class RenderLinearRange

import { RenderLinearRange } from 'scenerystack/alpenglow';

Constructor

new RenderLinearRange( start : number, end : number, startProgram : RenderProgram, endProgram : RenderProgram )

Instance Methods

getUnitReversed() : RenderLinearRange

withOffset( offset : number ) : RenderLinearRange

Static Methods

getGradientLinearRanges( min : number, max : number, offset : number, extend : RenderExtend, stops : RenderGradientStop[] ) : RenderLinearRange[]

Source Code

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