added some logic for progressive r g b shifting, abstracted RGB paint values into r, g, b variables.