(p, q, h)
| 1807 | // https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021 |
| 1808 | |
| 1809 | function hue2rgb(p, q, h) { |
| 1810 | h = (h + 1) % 1; |
| 1811 | if (h * 6 < 1) { |
| 1812 | return p + (q - p) * h * 6; |
| 1813 | } |
| 1814 | if (h * 2 < 1) { |
| 1815 | return q; |
| 1816 | } |
| 1817 | if (h * 3 < 2) { |
| 1818 | return p + (q - p) * ((2 / 3) - h) * 6; |
| 1819 | } |
| 1820 | return p; |
| 1821 | } |
| 1822 | |
| 1823 | spaces.hsla.to = function (rgba) { |
| 1824 | if (rgba[0] == null || rgba[1] == null || rgba[2] == null) { |