Generates a gradient between the specified elements, and retrieves the color at the specified point along the gradient, per the index argument.
world.log << gradient("#FF0000", "#000000", 0.5) // outputs #7F0000, as we have halved the red value
Generates a gradient between the specified elements, and retrieves the color at the specified point along the gradient, per the index argument.
world.log << gradient("#FF0000", "#000000", 0.5) // outputs #7F0000, as we have halved the red value