You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
hexString for NSColor extension provides invalid values for CMYK colors or other non RGB colors selected using NSColorPicker.
To Reproduce
Steps to reproduce the behavior:
let color = NSColor(deviceCyan: 0, magenta: 1, yellow: 1, black: 0.1, alpha: 1)
print(color.hexString) returns #000000
Expected behavior
print(color.hexString) should return #B50E20
Screenshots
Desktop (please complete the following information):
all versions
Additional context
FIX: convert color to RGB colorspace first. Use generic color space
Describe the bug
hexString for NSColor extension provides invalid values for CMYK colors or other non RGB colors selected using NSColorPicker.
To Reproduce
Steps to reproduce the behavior:
let color = NSColor(deviceCyan: 0, magenta: 1, yellow: 1, black: 0.1, alpha: 1)
print(color.hexString) returns #000000
Expected behavior
print(color.hexString) should return #B50E20
Screenshots
Desktop (please complete the following information):
Additional context
FIX: convert color to RGB colorspace first. Use generic color space
The text was updated successfully, but these errors were encountered: