modified getWireframeColor logic