:: Art_Vector_Set_Colour_Outfit_JS [script]

window.Art_Vector_Set_Colour_Outfit = function(artSlave) {

var s = {
	outfitBaseColour : undefined,
	glassesColor : undefined
	}

if (artSlave.fuckdoll != 0 || artSlave.clothes == "restrictive latex" || artSlave.clothes == "a latex catsuit" || artSlave.clothes == "a cybersuit") {
	s.outfitBaseColour = "#515351" ; /* standard "black rubber" latex colour */
	if (artSlave.clothingBaseColor) {
		s.outfitBaseColour = artSlave.clothingBaseColor ; /* latex colour selected by user */
		/* TODO: rewrite all textual descriptions not to explicitly mention the latex being of black colour. */
	}
}

if (artSlave.fuckdoll != 0 || artSlave.clothes == "a comfortable bodysuit") {
	s.outfitBaseColour = "#464646" ; /* bodysuit */
	if (artSlave.clothingBaseColor) {
		s.outfitBaseColour = artSlave.clothingBaseColor ; /* bodysuit colour selected by user */
	}
}

/* head addons */
switch (artSlave.eyewear) {
	case "corrective glasses":
	case "glasses": 
	case "blurring glasses":
		s.glassesColor = "#010101";
		break;
	default:
		/* use colour for "glasses" by default */
		s.glassesColor = "#010101";
	}

switch (artSlave.collar) {
	case "porcelain mask":
		s.glassesColor = "#FFFFFF";
		break;
	default:
		/* use colour for "mask" by default */
		s.glassesColor = "#010101";
	}

if (artSlave.glassesColor) {
	s.glassesColor = artSlave.glassesColor; /* glasses colour selected by user */
}

if (artSlave.eyeColor) {
	s.eyeColor = extractColor(artSlave.eyeColor, 1);
}

return s;
}

