add percentGradient to RGB and change how window.colors is created