function hsl_h_diff(a, b) {
	// Get the differences, normalized to 0 .. 1
	let hd = huediff(a, b);
	let sd = Math.abs(a.saturation - b.saturation) / 2;
	let ld = lumdiff(a, b);

	return hd + (sd + ld) / 1000;
}
// Differences of the modifiers, with various weights
Differences of the modifiers, with various weights
Differences of the modifiers with various weights
function hsl_h_diff(a, b) {
	let hd = huediff(a, b);
	let sd = Math.abs(a.saturation - b.saturation) / 2;
	let ld = lumdiff(a, b);
	return hd + (sd + ld) / 1000;
}
function hsl_h_diff ( a , b ) { let hd = huediff ( a , b ) ; let sd = Math . abs ( a . saturation - b . saturation ) / 2 ; let ld = lumdiff ( a , b ) ; return hd + ( sd + ld ) / 1000 ; }
Differences of the modifiers, with various weights
Differences of the modifiers with various weights
// Get the differences, normalized to 0 .. 1