Skip to content

ScoreDisplayStars

Overview

Display a score as '* * * ', where '' are stars, which may be fully or partially filled in. See specification in https://github.com/phetsims/vegas/issues/59.

@author John Blanco @author Sam Reid (PhET Interactive Simulations) @author Andrea Lin

Class ScoreDisplayStars

import { ScoreDisplayStars } from 'scenerystack/vegas';

Constructor

new ScoreDisplayStars( scoreProperty : TReadOnlyProperty<number>, providedOptions? : ScoreDisplayStarsOptions )

Instance Methods

dispose()

Type ScoreDisplayStarsOptions

import type { ScoreDisplayStarsOptions } from 'scenerystack/vegas';

Source Code

See the source for ScoreDisplayStars.ts in the vegas repository.