split rgb and alpha functions