-
public class Gradient.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Gradient.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final IntegerinterpolateColor(Integer color1, Integer color2, Float ratio)Helper function for creation of color map. -
-
Method Detail
-
interpolateColor
final Integer interpolateColor(Integer color1, Integer color2, Float ratio)
Helper function for creation of color map. Interpolates between two given colors using their HSV values.
- Parameters:
color1- First colorcolor2- Second colorratio- Between 0 to 1.
-
-
-
-