Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert RgbColor to 16-bit #14

Closed
NattyNarwhal opened this issue Oct 18, 2016 · 1 comment
Closed

Convert RgbColor to 16-bit #14

NattyNarwhal opened this issue Oct 18, 2016 · 1 comment

Comments

@NattyNarwhal
Copy link
Owner

Have an 8-bit representation available (R/G/B8) as needed, but this allows for greater colour resolution when interfacing with things that support it, like GDK, NSColor, Adobe formats, as well as colourspace conversions.

@NattyNarwhal
Copy link
Owner Author

To expand on this, byte -> ushort conversion should be done by byte * 0x101. Adobe's conversion from ushort->byte rounds 0xFF00 to 0xFE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant