Lines Matching refs:colors
114 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) {
116 GradientCacheEntry gradient(colors, positions, count);
120 texture = addLinearGradient(gradient, colors, positions, count);
130 void GradientCache::getGradientInfo(const uint32_t* colors, const int count,
140 if (((colors[i] >> 24) & 0xff) < 255) {
151 uint32_t* colors, float* positions, int count) {
154 getGradientInfo(colors, count, info);
168 generateTexture(colors, positions, count, texture);
176 void GradientCache::generateTexture(uint32_t* colors, float* positions,
185 float startA = (colors[0] >> 24) & 0xff;
186 float startR = (colors[0] >> 16) & 0xff;
187 float startG = (colors[0] >> 8) & 0xff;
188 float startB = (colors[0] >> 0) & 0xff;
190 float endA = (colors[1] >> 24) & 0xff;
191 float endR = (colors[1] >> 16) & 0xff;
192 float endG = (colors[1] >> 8) & 0xff;
193 float endB = (colors[1] >> 0) & 0xff;
210 endA = (colors[currentPos] >> 24) & 0xff;
211 endR = (colors[currentPos] >> 16) & 0xff;
212 endG = (colors[currentPos] >> 8) & 0xff;
213 endB = (colors[currentPos] >> 0) & 0xff;