Skip to content

BackgroundNode

Overview

BackgroundNode puts a Node on a rectangular background, dynamically sized to fit the Node.

@author Chris Malley (PixelZoom, Inc.) @author Michael Kauzmann (PhET Interactive Simulations)

Class BackgroundNode

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

Constructor

new BackgroundNode( node : Node, providedOptions? : BackgroundNodeOptions )

Instance Methods

Instance Properties

background : Rectangle

(readonly)

Type BackgroundNodeOptions

import type { BackgroundNodeOptions } from 'scenerystack/scenery-phet';

Source Code

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