LightRaysNode¶
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/LightRaysNode.ts for the most up-to-date information.
Overview¶
Light rays that indicate brightness of a light source such as a bulb.
@author Chris Malley (PixelZoom, Inc.)
Class LightRaysNode¶
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¶
- 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.