How do I convert HSL values to RGB values

Get help using Construct 2

Post » Fri Jun 24, 2016 4:33 pm

Does any body know how to convert HSL or HEX value to RGB values? I am making a game with randomized colors and I want to just change the hue, so that the brightness and the saturation stay the same but the actual color changes. I have tried using the "AdjustHSL" effect but I need it to apply to an entire layer and not just one image. I am currently using the "Tint" effect but it works in RGB value and not HSL. If any body know how to use HSL values in the "Tint" effect please tell me! :D
B
25
S
4
Posts: 74
Reputation: 1,346

Post » Fri Jun 24, 2016 4:49 pm

You can use an effect on a layer, and here's how to convert from hsl to rgb:
http://www.niwa.nu/2013/05/math-behind- ... s-rgb-hsl/
There may be a plugin that does this for you but I didn't look.
B
101
S
39
G
134
Posts: 5,588
Reputation: 85,514

Post » Fri Jun 24, 2016 5:19 pm

Thank you
B
25
S
4
Posts: 74
Reputation: 1,346


Return to How do I....?

Who is online

Users browsing this forum: facecrime and 10 guests