colorRamp(space = 'Lab')
, but hundreds of
times faster, and provides results in "#RRGGBB"
(or
"#RRGGBBAA"
) character form instead of RGB color matrices.
colour_ramp(colors, na.color = NA, alpha = FALSE)
NA
values (for example,
"#606060"
for dark grey, or "#00000000"
for transparent) and
values outside of [0,1]. Can itself by NA
, which will simply cause
an NA
to be inserted into the output.TRUE
then the returned
function will provide colors in "#RRGGBBAA"
format instead of
"#RRGGBB"
.