Skip to content

PlayPauseButton

Overview

Play pause button for starting/stopping the sim. Often appears at the bottom center of the screen. Generated programmatically using RoundPushButton (as opposed to using raster images).

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

Class PlayPauseButton

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

Constructor

new PlayPauseButton( isPlayingProperty : Property<boolean>, providedOptions? : PlayPauseButtonOptions )

Instance Methods

Type PlayPauseButtonOptions

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

PlayControlButtonOptions

Source Code

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