Skip to content

RenderRadialGradient

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/RenderRadialGradient.ts for the most up-to-date information.

Overview

RenderProgram for a classic radial gradient.

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

Class RenderRadialGradient

import { RenderRadialGradient } from 'scenerystack/alpenglow';

Constructor

new RenderRadialGradient( transform : Matrix3, start : Vector2, startRadius : number, end : Vector2, endRadius : number, stops : RenderGradientStop[], extend : RenderExtend, accuracy : RenderRadialGradientAccuracy, logic? : RenderRadialGradientLogic )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderRadialGradient

isSplittable() : boolean

transformed( transform : Matrix3 ) : RenderProgram

equalsTyped( other : this ) : boolean

(protected)

getSimplified( children : RenderProgram[] ) : RenderProgram | null

(protected)

getLogic() : RenderRadialGradientLogic

evaluate( context : RenderEvaluationContext ) : Vector4

writeInstructions( instructions : RenderInstruction[] )

split( face : RenderableFace ) : RenderableFace[]

serialize() : SerializedRenderRadialGradient

Type SerializedRenderRadialGradient

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

Source Code

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