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
21
S
3
Posts: 53
Reputation: 1,100

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
94
S
33
G
114
Posts: 5,359
Reputation: 73,779

Post » Fri Jun 24, 2016 5:19 pm

Thank you
B
21
S
3
Posts: 53
Reputation: 1,100


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 31 guests