- From: Isaac Muse via GitHub <sysbot+gh@w3.org>
- Date: Thu, 28 Nov 2024 15:41:21 +0000
- To: public-css-archive@w3.org
Yes, if this was truly desired, scaling the progress for hues would likely be the best way forward. Of course, this would be an exception and not premultiplication. If this was done, I think it would make sense to distinguish it as an exception for hues that applies "alpha-weighting" as opposed to "premultiplication". One would need to handle the cases were the denominator is zero. Some pseudocode. ```js if (index == hue_index) { denom = progress * end_alpha + (1 - progress) * start_alpha; p = (denom) ? (point * end_alpha) / denom : point; c = lerp(a, b, p); } ``` This is not an exhaustive test, but it appears to do what was desired: <img width="1209" alt="Screenshot 2024-11-28 at 8 36 45 AM" src="https://github.com/user-attachments/assets/d51b7980-aeff-485f-8507-ee8c3a33b26b"> -- GitHub Notification of comment by facelessuser Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11238#issuecomment-2506392257 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 28 November 2024 15:41:22 UTC