src/ColorFactory.js
function (color, angle) {
			var hsl, color0, color2;
			if (!angle) {
				angle = 30;
			}
			hsl = ColorHelper.rgbToHSL(color);
			hsl[0] = (hsl[0] + angle) % 360;
			color0 = ColorHelper.hslToHexColor(hsl);
			color0 = ColorHelper.darken(color0, 8);
			color0 = ColorHelper.saturate(color0, -6);
			hsl = ColorHelper.rgbToHSL(color);
			hsl[0] = (hsl[0] - angle + 360) % 360;
			color2 = ColorHelper.hslToHexColor(hsl);
			return [color0, color, color2];
		}
function (color, angle) {
			var hsl, color0, color2;
			if (!angle) {
				angle = 30;
			}
			hsl = ColorHelper.rgbToHSL(color);
			hsl[0] = (hsl[0] + angle) % 360;
			color0 = ColorHelper.hslToHexColor(hsl);
			color0 = ColorHelper.darken(color0, 8);
			color0 = ColorHelper.saturate(color0, -6);
			hsl = ColorHelper.rgbToHSL(color);
			hsl[0] = (hsl[0] - angle + 360) % 360;
			color2 = ColorHelper.hslToHexColor(hsl);
			return [color0, color, color2];
		}
function ( color , angle ) { var hsl , color0 , color2 ; if ( ! angle ) { angle = 30 ; } hsl = ColorHelper . rgbToHSL ( color ) ; hsl [ 0 ] = ( hsl [ 0 ] + angle ) % 360 ; color0 = ColorHelper . hslToHexColor ( hsl ) ; color0 = ColorHelper . darken ( color0 , 8 ) ; color0 = ColorHelper . saturate ( color0 , - 6 ) ; hsl = ColorHelper . rgbToHSL ( color ) ; hsl [ 0 ] = ( hsl [ 0 ] - angle + 360 ) % 360 ; color2 = ColorHelper . hslToHexColor ( hsl ) ; return [ color0 , color , color2 ] ; }
Two adjacent colors on 12-part color wheel
Two adjacent colors on 12 - part color wheel