MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / hue2rgb

Function hue2rgb

OpenReservation/wwwroot/Scripts/jquery-ui.js:1809–1821  ·  view source on GitHub ↗
(p, q, h)

Source from the content-addressed store, hash-verified

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) {

Callers 1

jquery-ui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected