Class: PlayButton

UIs.PlayButton()

displays and handles clicks on the playback button.

Constructor

new PlayButton()

Source:

Members

playing :boolean

flag to determine whether to play or pause after button click and to determine which icon to draw
Type:
  • boolean
Source:

Methods

draw()

draw a play and pause button depending on the state of playing
Source:

mousePressed() → {boolean}

start or pauses the sound when the button is clicked
Source:
Returns:
true if clicked false otherwise.
Type
boolean