method
Color.with_alpha
Color.with_alpha(c, a) -> int
Returns c with its alpha byte set to a (0..255), leaving the RGB channels untouched.
Example
program Demo {
handler DrawWorld phase Render {
let c = Color.with_alpha(Color.Green, 128)
Screen.clear(c)
Screen.show()
}
}