multicolorfits.rgb_to_ryb#
- multicolorfits.rgb_to_ryb(rgb)[source]#
Vectorized sRGB -> RYB conversion (Sugita & Takahashi 2017).
- Parameters:
rgb (numpy.ndarray) – Array with last axis of length 3, values in [0, 1].
- Returns:
numpy.ndarray – RYB array of the same shape, values in [0, 1]. Note the subtractive convention: RGB black -> RYB (1,1,1); RGB white -> RYB (0,0,0).