Skip to content

LightRaysNode

Overview

Light rays that indicate brightness of a light source such as a bulb.

@author Chris Malley (PixelZoom, Inc.)

Class LightRaysNode

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

Constructor

new LightRaysNode( bulbRadius : number, provideOptions? : LightRaysNodeOptions )

Instance Methods

setBrightness( brightness : number )

Sets the brightness, which updates the number and length of light rays. @param brightness -a value in the range [0,1]

Type LightRaysNodeOptions

import type { LightRaysNodeOptions } from 'scenerystack/scenery-phet';
  • minRays?: number
  • maxRays?: number
  • minRayLength?: number
  • maxRayLength?: number
  • longRayLineWidth?: number
  • mediumRayLineWidth?: number
  • shortRayLineWidth?: number
  • & PathOptions

Source Code

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