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
{{ message }}
This repository was archived by the owner on May 15, 2024. It is now read-only.
Description
The precision of the color conversion for UIColor (and perhaps also for NSColor & other platforms) can be improved.
Steps to Reproduce
UIColorPickerViewControllerand enterDisplay P3 Hex Color : #663399UIColorPickerViewController& callToSystemColoron itExpected Behavior
#663399
Actual Behavior
#653299
This is because the CGColor has these components:
Red: 101.999986320734
Green: 50.9999969601631
Blue: 153.000021278858
With the current conversion, the values are rounded down:
Essentials/Xamarin.Essentials/Types/PlatformExtensions/ColorExtensions.ios.tvos.watchos.cs
Line 15 in 0dba844
I think this would be a better conversion method: