Skip to content

PlayPauseButton

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/buttons/PlayPauseButton.ts for the most up-to-date information.

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.