Skip to content

LightBulbNode

Overview

Light bulb, made to 'glow' by modulating opacity of the 'on' image.

@author Chris Malley (PixelZoom, Inc.)

Class LightBulbNode

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

Constructor

new LightBulbNode( brightnessProperty : TReadOnlyProperty<number>, providedOptions? : LightBulbNodeOptions )

Instance Methods

dispose()

Type LightBulbNodeOptions

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

Source Code

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