![]() |
HSLtoRGB
Converts colors from the HSL color space to the RGB color space. I copied and converted this from a toolkit for C#. Judging from my tests, it works well.
PHP Code:
Example usage: PHP Code:
H, S and L have to be values between 0 and 1. The returned RGB values are also between 0 and 1. Enjoy! |
Very nice :)
|
Props for the function AND that avatar! Best platformer ever.
|
All times are GMT +2. The time now is 11:15 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.