VibrationIndicator¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/tappi/blob/main/js/view/VibrationIndicator.js for the most up-to-date information.
Overview¶
A way to visualize haptic feedback. This is an icon that looks like a phone with zig zag lines around it to represent vibration. When vibrating, the zig zags are visible and jostle around and the phone screen turns a different color.
@author Jesse Greenberg
Class VibrationIndicator¶
Constructor¶
new VibrationIndicator( vibratingProperty )¶
Instance Methods¶
step( dt )¶
Animate the indicator if vibrating. @public
@param {number} dt
Source Code¶
See the source for VibrationIndicator.js in the tappi repository.