Skip to content

ScoreDisplayLabeledStars

Overview

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

@author Chris Malley (PixelZoom, Inc.)

Class ScoreDisplayLabeledStars

import { ScoreDisplayLabeledStars } from 'scenerystack/vegas';

Constructor

new ScoreDisplayLabeledStars( scoreProperty : TReadOnlyProperty<number>, providedOptions? : ScoreDisplayLabeledStarsOptions )

Instance Methods

dispose()

Type ScoreDisplayLabeledStarsOptions

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

Source Code

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