Skip to main content

normalize_opacity

Function normalize_opacity 

Source
pub fn normalize_opacity(alpha: f32) -> f32
Expand description

Canonical opacity representation shared by widgets, retained layers, and GPU lowering. Non-finite values become transparent and finite values are clamped to the physically meaningful range.