LightRaysNode¶
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.