Fixed RGB function