Added set/to rgb functions. changed 8 to 12 bit function to allow for floats.