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

/external/webkit/WebCore/platform/graphics/
H A DGradient.cpp154 float stopFraction = (value - lastStop.stop) / (nextStop.stop - lastStop.stop); local
155 *r = lastStop.red + (nextStop.red - lastStop.red) * stopFraction;
156 *g = lastStop.green + (nextStop.green - lastStop.green) * stopFraction;
157 *b = lastStop.blue + (nextStop.blue - lastStop.blue) * stopFraction;
158 *a = lastStop.alpha + (nextStop.alpha - lastStop.alpha) * stopFraction;

Completed in 9 milliseconds