 
 			else
 
+				# hsl model
 				hslA = colorA.toHsl()
 				hslB = colorB.toHsl()
 

	##############################################################
	## Class methods

	@mix: (colorA, colorB, fraction = .5, limit = false, model = "husl") ->

		result = null


				else if hslB.s == 0
					hslB.h = hslA.h

				fromH = hslA.h
				toH = hslB.h
				deltaH = toH - fromH

				if deltaH > 180
					deltaH = (toH - 360) - fromH
				else if deltaH < 180
					deltaH = (toH + 360) - fromH

				result = new Color
					h: Utils.modulate(fraction, [0, 1], [fromH, fromH + deltaH], limit)
					s: Utils.modulate(fraction, [0, 1], [hslA.s, hslB.s], limit)
					l: Utils.modulate(fraction, [0, 1], [hslA.l, hslB.l], limit)
					a: Utils.modulate(fraction, [0, 1], [hslA.a, hslB.a], limit)
