Sanitise a spec for an 'colour'

sanitise_spec_colour(spec)

Arguments

spec

named list object with 'type = "colour"', 'nbits' or 'rgb_bits'

Value

Return sanitised spec with any generic default values set