Start the ping animation.
Returns true if the animation ran to completion, false otherwise.
On each tick, advance the animation.
The number of ms that elapsed since the previous frame.
The animation state.
Draw the shape for this ping.
The graphics object to draw to.
The color of the shape.
The alpha of the shape.
The size of the shape to draw.
Initialize some time slice variables that will be used to control the animation.
The animation for each ring can be separated into two consecutive stages. Stage 1: Fade in a white ring with radius r0. Stage 2: Expand radius outward. While the radius is expanding outward, we have two additional, consecutive animations: Stage 2.1: Transition color from white to the configured color. Stage 2.2: Fade out. 1/5th of the animation time is allocated to Stage 1. 4/5ths are allocated to Stage 2. Of those 4/5ths, 2/5ths are allocated to Stage 2.1, and 2/5ths are allocated to Stage 2.2.
Transition linearly from one color to another.
The color to transition from.
The color to transition to.
The length of the transition in milliseconds.
The current time along the duration.
The incremental color between from and to.
A type of ping that produces a pulsing animation.
The canvas co-ordinates of the origin of the ping.
Additional options to configure the ping animation.