getAlphaFromOpacity static method
- double opacity
Returns an alpha value representative of the provided opacity
value.
The opacity
value may not be null.
Implementation
static int getAlphaFromOpacity(double opacity) {
return (clampDouble(opacity, 0.0, 1.0) * 255).round();
}