 		if isNaN(fraction)
 			fraction = .5
 
-		if typeof colorA is "string" && @isColorString(colorA)
+		if typeof colorA is "string" and @isColorString(colorA)
 			colorA = new Color colorA
-		if typeof colorB is "string" && @isColorString(colorB)
+		if typeof colorB is "string" and @isColorString(colorB)
 			colorB = new Color colorB
 
 		if colorA not instanceof Color and colorB instanceof Color


			else if color.hasOwnProperty("h") or color.hasOwnProperty("s")

				h = if isNumeric(color.h) then color.h else 0
				s = if isNumeric(color.s) then convertToPercentage(color.s) else 1

				if color.hasOwnProperty("v")
					v = if isNumeric(color.v) then convertToPercentage(color.v) else 0
					rgb = hsvToRgb(h, s, v)
				else
					l = if isNumeric(color.l) then convertToPercentage(color.l) else 50
					rgb = hslToRgb(h, s, l)

				ok = true

	hex6: /^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
	}

stringToObject = (color) ->
	trimLeft = /^[\s,#]+/
	trimRight = /\s+$/
