Searched refs:stopFraction (Results 1 - 1 of 1) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/
H A DGradient.cpp170 float stopFraction = (value - lastStop.stop) / (nextStop.stop - lastStop.stop); local
171 *r = lastStop.red + (nextStop.red - lastStop.red) * stopFraction;
172 *g = lastStop.green + (nextStop.green - lastStop.green) * stopFraction;
173 *b = lastStop.blue + (nextStop.blue - lastStop.blue) * stopFraction;
174 *a = lastStop.alpha + (nextStop.alpha - lastStop.alpha) * stopFraction;

Completed in 58 milliseconds