class Colors::Palette
- Colors::Palette
- Reference
- Object
Defined in:
colors.crConstructors
Instance Method Summary
-
#colorize(num)
return hex color string, from
@colormap
given a numbernum
- #colormap : Array(String)
- #colormap=(colormap : Array(String))
-
#help
return String listing all available colormaps
-
#lerp(color1 = 0, color2 = 16777215, size = 256)
generate a gradient array using linear interpolation
-
#lerp_sequence(*colors, size = 256)
run
#lerp
multiple times to generate a full palette -
#set_gradient(key)
set the colormap
-
#set_range(min : Int32, max : Int32)
set the range, for
self.colorize
Constructor Detail
Instance Method Detail
generate a gradient array using linear interpolation