Module pathfinder::tools

source ·

Functions

Checks so that the applied adjustments stay within a u8.
Finds an element using their hashes.
Returns a random Rgb color. the opacity is always 255.
Returns a random item from a given list.
Implemented according to https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
Returns a Rgba with a modified value depending on how close it is to it’s falloff point.
Returns a random number between the min and maximum.
Returns a Rgb color based on a seed value. the opacity is always 255.