Skip to content

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

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

Constructor

new FaceNode( headDiameter : number, providedOptions? : FaceNodeOptions )

Instance Methods

smile() : FaceNode

frown() : FaceNode

Type FaceNodeOptions

import type { FaceNodeOptions } from 'scenerystack/scenery-phet';

Source Code

See the source for FaceNode.ts in the scenery-phet repository.