add_transparency.Rd
This functions add (or set) transparency to a vector of colors.
add_transparency(x, alpha = 0, maxColorValue = 255)
vector of original color.
numeric between O and 1, desired transparency.
integer, same as in rgb.
vector of colors with alpha.
Both 'x' and 'alpha' may be vectors. In case their length are not compatible, a vector of the maximum length will be generated without any warning.