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