Lines Matching refs:midPoint
400 * @param midPoint The offset between color 1 and color 2, a value of 0.0 is
406 float midPoint, boolean uiResource) {
407 int argb = deriveARGB(color1, color2, midPoint);
421 * @param midPoint The offset between color 1 and color 2, a value of 0.0 is
426 float midPoint) {
427 return getDerivedColor(color1, color2, midPoint, true);
474 * @param midPoint The offset between color 1 and color 2, a value of 0.0 is
478 static int deriveARGB(Color color1, Color color2, float midPoint) {
480 Math.round((color2.getRed() - color1.getRed()) * midPoint);
482 Math.round((color2.getGreen() - color1.getGreen()) * midPoint);
484 Math.round((color2.getBlue() - color1.getBlue()) * midPoint);
486 Math.round((color2.getAlpha() - color1.getAlpha()) * midPoint);