Lines Matching refs:to
437 // put all steps that we need to interpolate to into a list
444 // interpolate "from" to "to"
448 BGradient::ColorStop* to = NULL;
454 to = step;
458 if (!to)
461 nextSteps.RemoveItem((void*)to);
464 int32 offset = (int32)floorf((count - 1) * to->offset + 0.5);
474 uint16 toRed = kGammaTable[to->color.red];
475 uint16 toGreen = kGammaTable[to->color.green];
476 uint16 toBlue = kGammaTable[to->color.blue];
486 c[3] = (uint8)floor(from->color.alpha * f + to->color.alpha * t + 0.5);
495 c[0] = (uint8)floor(from->color.red * f + to->color.red * t + 0.5);
496 c[1] = (uint8)floor(from->color.green * f + to->color.green * t + 0.5);
497 c[2] = (uint8)floor(from->color.blue * f + to->color.blue * t + 0.5);
498 c[3] = (uint8)floor(from->color.alpha * f + to->color.alpha * t + 0.5);
504 // the current "to" will be the "from" in the next interpolation
505 from = to;