- Found in:
- Dylbills PE
Description
Documentation Comment
rgb / hsl conversion functions I wrote from following this guide:
https://www.niwa.nu/2013/05/math-behind-colorspace-conversions-rgb-hsl/
convert RGB to HSL format and return in int array. [0] = H [1] = S [2] = L
S and L are ints between 0 and 100 (percent)
Caveats
Parameters
intR
intG
intB
Examples
Auto-Generated Example
int myInt__R
int myInt__G
int myInt__B
int[] returnedValue = DbColorFunctions.RGBToHSL(myInt__R, myInt__G, myInt__B)