Skip to content

PlayStopButton

Overview

Button for starting/stopping some behavior. Unlike the PlayPauseButton, this indicates that play will re-start from the beginning after switch from play to stop.

@author Sam Reid (PhET Interactive Simulations) @author Jesse Greenberg (PhET Interactive Simulations)

Class PlayStopButton

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

Constructor

new PlayStopButton( isPlayingProperty : Property<boolean>, providedOptions? : PlayStopButtonOptions )

Instance Methods

Type PlayStopButtonOptions

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

PlayControlButtonOptions

Source Code

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