MCPcopy Create free account
hub / github.com/amandaghassaei/OrigamiSimulator / hue2rgb

Function hue2rgb

dependencies/three.js:4961–4970  ·  view source on GitHub ↗
( p, q, t )

Source from the content-addressed store, hash-verified

4959 setHSL: function () {
4960
4961 function hue2rgb( p, q, t ) {
4962
4963 if ( t < 0 ) t += 1;
4964 if ( t > 1 ) t -= 1;
4965 if ( t < 1 / 6 ) return p + ( q - p ) * 6 * t;
4966 if ( t < 1 / 2 ) return q;
4967 if ( t < 2 / 3 ) return p + ( q - p ) * 6 * ( 2 / 3 - t );
4968 return p;
4969
4970 }
4971
4972 return function setHSL( h, s, l ) {
4973

Callers 1

three.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected