ShadedSphereNode¶
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/ShadedSphereNode.ts for the most up-to-date information.
Overview¶
A 3D-looking sphere with a specular highlight.
@author Chris Malley (PixelZoom, Inc.)
Class ShadedSphereNode¶
Constructor¶
new ShadedSphereNode( diameter : number, providedOptions? : ShadedSphereNodeOptions )¶
Instance Methods¶
invalidatePath()¶
(protected)
Type ShadedSphereNodeOptions¶
- mainColor?: TColor
- highlightColor?: TColor
- shadowColor?: TColor
- highlightDiameterRatio?: number
- highlightXOffset?: number
- highlightYOffset?: number
- & StrictOmit<CircleOptions, "fill">
Source Code¶
See the source for ShadedSphereNode.ts in the scenery-phet repository.