... 13619151, 8388608 } } is same as { { 1, 13619151, 8388608 } } The first element of { 0.0, 8388608, 13619151 } is ignored when painting. Gradient spec is like this { { n1, clr11, clr12 }, ; { n2, clr21, clr22 }, ; ........ { nN, clrN1, clrN2 } } Where n1 + n2 + ... nN = 1 If this total is > ...