Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Introduce web-colors feature flag to enable "sRGB linear" blending#1888

Merged
hecrj merged 4 commits into
masterfrom
web-colors
Jun 3, 2023
Merged

Introduce web-colors feature flag to enable "sRGB linear" blending#1888
hecrj merged 4 commits into
masterfrom
web-colors

Conversation

@hecrj
Copy link
Copy Markdown
Member

@hecrj hecrj commented May 31, 2023

This is how browsers perform color management. They treat gamma-corrected sRGB colors as if they had linear components.

Correctness aside, this mode is introduced for legacy reasons. Most UI/UX tooling uses this color management as well, and many developers and designers have created an intuition about how color should behave from interacting with a browser.

This feature flag should facilitate application development with iced in those cases.

More details: https://webcolorisstillbroken.com/

This is how browsers perform color management. They treat
gamma-corrected sRGB colors as if they were linear RGB.

Correctness aside, this mode is introduced for legacy reasons. Most
UI/UX tooling uses this color management as well, and many have created
an intuition about how color should behave from interacting with a
browser.

This feature flag should facilitate application development with `iced`
in those cases.

More details: https://webcolorisstillbroken.com/
@hecrj hecrj added feature New feature or request rendering web styling labels May 31, 2023
@hecrj hecrj added this to the 0.10.0 milestone May 31, 2023
@hecrj
Copy link
Copy Markdown
Member Author

hecrj commented May 31, 2023

Normal vs Web colors

imageimage

@bungoboingo
Copy link
Copy Markdown
Contributor

A necessary evil I think. LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants