Skip to contents

Helper function to generate RGB colors.

Usage

colSampler(alpha = NULL)

Arguments

alpha

(`numeric(1)`) The alpha value. If `!is.null` the used prefix is 'rgba' instead of 'rgb'.

Value

A character of length one containing the RGB color.