use ofColor casting in setHex