FaceNode¶
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/FaceNode.ts for the most up-to-date information.
Overview¶
FaceNode is a face that can smile or frown. This is generally used for indicating success or failure. This was ported from a version that was originally written in Java.
@author Chris Malley (PixelZoom, Inc.) @author John Blanco
Class FaceNode¶
Constructor¶
new FaceNode( headDiameter : number, providedOptions? : FaceNodeOptions )¶
Instance Methods¶
smile() : FaceNode¶
frown() : FaceNode¶
Type FaceNodeOptions¶
- headFill?: TColor
- headStroke?: TColor
- eyeFill?: TColor
- mouthStroke?: TColor
- headLineWidth?: number
- & NodeOptions
Source Code¶
See the source for FaceNode.ts in the scenery-phet repository.