HydroJLW Posted March 23, 2023 Share Posted March 23, 2023 Hi, I recently noticed when using the recolour adjustment, it gives you the colours on a degree scale with saturation and lightness options underneath. Everything else in the app works with HEX codes or RGB/HSL/CMYK etc sliders. Is there a reason for this? It seems to make recolouring to a set value, very difficult. Does anyone know if you can set a recolour adjustment to a HEX value (or other RGB/HSL etc) or how the degree scale translates to these other formats? Thank you Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted March 23, 2023 Share Posted March 23, 2023 Recolor offers input for hue and saturation as absolute values in the scale 0-360 for hue, and 0-100 for saturation. lightness is taken from source image. The slider allows relative adjustment +/- 100% Hex values are mostly used for absolute RGB, which does not make sense here hex values are 00-FF, equals 0-255 in decimal. You normalize to float 0.0 -1.0 by dividing by 255. You would need to convert RGB into HSL, take H and S, ignore L multiply H by 360 multiply S by 100 see https://en.wikipedia.org/wiki/HSL_and_HSV From RGB[edit] See also: § General approach This is a reiteration of the previous conversion. Value must be in range . With maximum component (i. e. value) and minimum component , range (i. e. chroma) and mid-range (i. e. lightness) , we get common hue: and distinct saturations: i made a conversion by procedural texture filters, see HydroJLW 1 Quote Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. Link to comment Share on other sites More sharing options...
HydroJLW Posted March 23, 2023 Author Share Posted March 23, 2023 35 minutes ago, NotMyFault said: Wow - thank you for this, I'll have a read. I feel like HSL recolour options could be a useful feature...and probably easily added I would have though. Cheers Recolor offers input for hue and saturation as absolute values in the scale 0-360 for hue, and 0-100 for saturation. lightness is taken from source image. The slider allows relative adjustment +/- 100% Hex values are mostly used for absolute RGB, which does not make sense here hex values are 00-FF, equals 0-255 in decimal. You normalize to float 0.0 -1.0 by dividing by 255. You would need to convert RGB into HSL, take H and S, ignore L multiply H by 360 multiply S by 100 see https://en.wikipedia.org/wiki/HSL_and_HSV From RGB[edit] See also: § General approach This is a reiteration of the previous conversion. Value must be in range . With maximum component (i. e. value) and minimum component , range (i. e. chroma) and mid-range (i. e. lightness) , we get common hue: and distinct saturations: i made a conversion by procedural texture filters, see Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.