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