Skip to content

ShadedSphereNode

Overview

A 3D-looking sphere with a specular highlight.

@author Chris Malley (PixelZoom, Inc.)

Class ShadedSphereNode

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

Constructor

new ShadedSphereNode( diameter : number, providedOptions? : ShadedSphereNodeOptions )

Instance Methods

invalidatePath()

(protected)

Type ShadedSphereNodeOptions

import type { ShadedSphereNodeOptions } from 'scenerystack/scenery-phet';
  • 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.