getShadowAlpha static method

int getShadowAlpha(
  1. double calculatedElevation,
  2. double widgetElevation
)

Implementation

static int getShadowAlpha(
    double calculatedElevation, double widgetElevation) {
  if (widgetElevation > 0) {
    return 10 * calculatedElevation ~/ widgetElevation;
  }
  return 0;
}