RgbOpaque.Rd
Determine the equivalent opaque RGB color for a given partially transparent RGB color against a background of any color.
ColToOpaque(col, alpha = NULL, bg = NULL)
the color as hex value (use converters below if it's not available). col
and alpha
are recycled.
the alpha channel, if left to NULL the alpha channels of the colors are used
the background color to be used to calculate against (default is "white")
Reducing the opacity against a white background is a good way to find usable lighter and less saturated tints of a base color. For doing so, we sometimes need to get the equivalent opaque color for the transparent color.
An named vector with the hexcodes of the opaque colors.