Calls the requestAnimationFrame function or a polyfill
Checks if the given shape bounds are inside the given rectangle
the shape bounds to check
the rectangle size
position offset
the shape direction
Returns a random array index
the array to get the index from
a random array index
Calculates the bounds of the given point
the point to calculate the bounds from
the point radius
the bounds of the given point
Cancels the requestAnimationFrame function or a polyfill
Cancels the requestAnimationFrame function or a polyfill
Executes the circle bounce between two particles
the first particle
the second particle
Returns circle bounce data for the given particle
the particle to get the circle bounds data for
the circle bounce data for the given particle
Merges the whole source objects into the destination object
the destination object
the source objects
the merged destination object
Checks if the given element targets any of the div modes
the div elements to check
the element to check
true if the element targets any of the div modes
Execute the given callback if div mode in the given div elements is enabled
the div mode to check
the div elements to check
the callback to execute
Checks if the given div mode is enabled in the given div elements
the div mode to check
the div elements to check
true if the div mode is enabled
Checks if a value is equal to the destination, if same type, or is in the provided array
the value to check
the data array or single value
true if the value is equal to the destination, if same type, or is in the provided array
Checks if the given point is inside the given rectangle
the point to check
the rectangle size
position offset
the point radius
the point direction
true if the point is inside the rectangle
Checks if the script is executed server side
Returns a random object from the given array
the array to get the object from
the index to get the object from
if true, the index will be used instead of a random index
Loads a font for the canvas
font name
font weight
Calls the requestAnimationFrame function or a polyfill