%c = new GuiBitmapCtrl("TMBI_SLOT_"@%x@"_"@%a)
		{
			profile = "HUDBitmapProfile";
			horizSizing = "right";
			vertSizing = "bottom";
			position = 64*%a SPC "0";
			extent = "64 64";
			minExtent = "8 2";
			visible = "1";
			bitmap = %val;
		};
		if($pref::Hud::RecolorBrickIcons)
		{
			%color = getcoloridtable($currSprayCanIndex);
			%colorA = 1-((1-getword(%color, 3))*$tmbi::pref::transweight); //on a diet, weighs less
			%c.setcolor(getwords(%color, 0, 2) SPC %colorA);
		}
But if you were talking about coloring the gui or whatever based on paint pallet, that doesn't make sense to me because it is mixing a server dictated coloring thing with something client sided.  If you join a server that no longer has that same color, what then?  It's better just to have a client sided color manager.
That freaking color wheel took me 3 hours, four sodas, and two pieces of scratch paper to figure out, but it turned out to only be like ten lines of code.  Dissapoint.