Skip to content

GradientBackgroundNode

Under Construction

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

Overview

Base type for nodes that are used as the background on a tab and that have some sort of gradient to it. Example include ground and sky.

@author John Blanco @author Sam Reid (PhET Interactive Simulations)

Class GradientBackgroundNode

import { GradientBackgroundNode } from 'scenerystack/scenery-phet';

Constructor

new GradientBackgroundNode( x : number, y : number, width : number, height : number, color1 : TColor, color2 : TColor, y1 : number, y2 : number )

Instance Methods

Source Code

See the source for GradientBackgroundNode.ts in the scenery-phet repository.