Timeline for Programmatically hue rotating a hex-based color in PowerShell
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 25, 2023 at 5:36 | comment | added | Maybe | @mclayton Took me a bit, but I finished it: stackoverflow.com/a/76974490 | |
Aug 25, 2023 at 5:36 | answer | added | Maybe | timeline score: 1 | |
Aug 17, 2023 at 1:36 | history | edited | Maybe | CC BY-SA 4.0 |
deleted 12 characters in body
|
Aug 17, 2023 at 1:36 | comment | added | Maybe | @mclayton Disregard what I said before, 90deg actually comes out to #FFA8FF; the way hue-rotate calculates the new color is completely different from how MDiGi (as well as Hue adjustment filters that can be found in programs like Photoshop) calculates things. Basically, it's based on HSL rather than RGB, which is why it's so different. I've got my own set of functions for this Hex -> RGB -> HSL -> Hex process, and I'll post them in a supplemental answer soon... maybe today or tomorrow. | |
Aug 16, 2023 at 0:07 | history | edited | Maybe | CC BY-SA 4.0 |
added 22 characters in body
|
Aug 15, 2023 at 22:36 | comment | added | mclayton | You might need to update the title of the 2 x "step 3"'s as well? Currently says "Hue-rotate *180∘" :-)... | |
Aug 15, 2023 at 22:24 | comment | added | Maybe | @mclayton I was using mdigi.tools/change-color-hue/#33eeff but apparently what it considers 180 degrees, hue-rotate considers to be 90 degrees. I've now adjusted my question to reflect that. | |
Aug 15, 2023 at 22:23 | history | edited | Maybe | CC BY-SA 4.0 |
added 10 characters in body
|
Aug 15, 2023 at 22:07 | vote | accept | Maybe | ||
Aug 14, 2023 at 21:58 | answer | added | mclayton | timeline score: 2 | |
Aug 14, 2023 at 21:19 | comment | added | mclayton |
How are you calculating your "hue-rotate" reference values (e.g. #33EEFF -> #FF4433 )? If you look at the reference implementation at drafts.fxtf.org/filter-effects/#feColorMatrixElement where it says "For type="hueRotate"", the formula appears to give #33EEFF -> #FFA190 , which is also backed up by this runable answer: stackoverflow.com/questions/19187905/… which says "rgb(51,238,255) -> rgb(255,161,144)"
|
|
Aug 14, 2023 at 17:34 | history | asked | Maybe | CC BY-SA 4.0 |