NotMyFault Posted December 26, 2021 Posted December 26, 2021 (edited) Hi, after quite a bit of experimenting i finally found a working live filter to convert RGB into HSL, and back to RGB. The HSL values are stored in RGB channels, and must be interpreted accordingly (e.g. multiply R by 360 to get the classical 0-360 degree for hue). H in R, S in G, L in B. This will allow you to access individual channels (hue, saturation, and luminosity), and modify independently, or use for intelligent masking / filtering. The formulas are based on: https://en.wikipedia.org/wiki/HSL_and_HSV#From_RGB Please use RGB/16 to avoid rounding / banding issues, even if the formula are only capable to convert RGB/8 color data. Use it at own risk, and have fun with it. Purposes: Create mask or selections based on hue saturation luminosity upper / lower bounds of these values and combination of above (and, or) create 2 dimensional charts of one fixed and two variable parameters of the three, e.g. all possible hue / saturation values for fixed luminosity of 50% modify saturation (independent from hue / lum) modify luminosity (independent from hue / sat) modify hue (independent from sat / lum) swap HSL channels invert HSL channels Update: New Version, now working with V2 preset file for easy import into PT filter presets RGB HSL PT filter.aftoolpresets perfect RGB HSL RGB conversion with test image V2.afphoto Edited February 2, 2023 by NotMyFault New Version Aftemplate and well88 2 Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K 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. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
NotMyFault Posted January 31, 2023 Author Posted January 31, 2023 I checked the PT filter, it does not work in V2 under MacOS, as some of the variable names are now reserved. Will provide an update soon. Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K 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. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
MxHeppa Posted February 2, 2023 Posted February 2, 2023 Not yet updated? Quote AMD 7 7700X 64gigabytes ram 4Tb SSD for all kind projects. Affinity Apps v2 version. Windows 11 Pro.
NotMyFault Posted February 2, 2023 Author Posted February 2, 2023 Updated. Template now works with V2. MxHeppa 1 Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K 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. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
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.