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

[bug] there are some colors that can not be rendered #3

Open
Mas0nSun opened this issue Feb 13, 2023 · 0 comments
Open

[bug] there are some colors that can not be rendered #3

Mas0nSun opened this issue Feb 13, 2023 · 0 comments

Comments

@Mas0nSun
Copy link

Mas0nSun commented Feb 13, 2023

Such as the color that is selected in this snapshot:

Screenshot 2023-02-13 at 22 09 43

The cgColor is <CGColor 0x600002945740> [<CGColorSpace 0x60000297aac0> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; Display P3)] ( 0.929966 0.452357 0.181053 1 )

Then I find the method of UIColor.toHex does not work. Because the red value is 1.0000003576278687, and the value of red * multiplier is 256.00009055273404. So the hex is #1006A00

Is it possible to use 255 instead of 255.999999 for the multiplier value?

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