FaceWithPointsNode¶
Overview¶
A face that either smiles or frowns. When the face is smiling, it displays points awarded next to it.
@author John Blanco @author Sam Reid (PhET Interactive Simulations) @author Chris Malley (PixelZoom, Inc.)
Class FaceWithPointsNode¶
Constructor¶
new FaceWithPointsNode( providedOptions? : FaceWithPointsNodeOptions )¶
Instance Methods¶
smile()¶
frown()¶
setPoints( points : number )¶
Sets the number of points displayed. @param points
Type FaceWithPointsNodeOptions¶
- spacing?: number
- faceDiameter?: number
face options - faceOpacity?: number
- pointsAlignment?: PointsAlignment
points options - pointsFont?: Font
- pointsFill?: TColor
- pointsStroke?: TColor
- pointsOpacity?: number
- showZeroPoints?: boolean
- points?: number
- & StrictOmit<NodeOptions, "children">
Source Code¶
See the source for FaceWithPointsNode.ts in the scenery-phet repository.