Color Interpolator
interface ColorInterpolator
Content copied to clipboard
A ColorInterpolator represents a color space between 2 TileColor. lowColor sits at the lowest end of the color space, and will be the result of a call to getColorAtRatio with a ratio of 0.0. highColor is conversely the highest value, and a ratio of 1.0 will return it. Calling getColorAtRatio with any other ratio (between 0.0 and 1.0) will return a new TileColor that is the linear interpolation between lowColor and highColor on their R, G, B and A values.
A ColorInterpolator is created with the function TileColor.interpolateTo
Functions
getColorAtRatio
Link copied to clipboard
Returns a new TileColor which is the interpolation between the two colors of the interpolator at the given ratio (between 0.0 and 1.0).
Properties
Inheritors
DefaultColorInterpolator
Link copied to clipboard
Sources
(source)
Link copied to clipboard