Box.Generator.Color (box v0.15.1)
View SourceGenerates an RGB(A) string.
Options
alpha
: Range of possible alpha to generate. Range is expected to be from integer value like0..100
in order to have from 0.0 to 1.0. Fixed value can be passed as inttype
::hsl
,:hex
or:rgb
Type specific options
RGB
red
: Range to pick for redblue
: Range to pick for bluegreen
: Range to pick for green
HSL
hue
: Range to pick for huesaturation
: Range to pick for saturationlightness
: Range to pick for lightness