updated version of thx.color