alpha
Multiplies the current alpha value with the passed in multiplier.
If mult is 0 then it will be completely transparent, 0.5 would be
half of the current alpha and so on.
Returns the previous alpha value, use alphaSet to restore it.
Only valid between Window.beginand Window.end.
Parameters
- mult:f32
- f32
Source
Implementation
pub fn alpha(mult: f32) f32 {
const cw = currentWindow();
const ret = cw.alpha;
alphaSet(cw.alpha * mult);
return ret;
}