method
Color.lighten
Color.lighten(c, amount) -> int
Moves each channel of c a fraction amount of the way to 255, returning a lighter color — the counterpart to Color.darken. Good for highlights and hover states.
Example
program Demo {
handler DrawWorld phase Render {
let c = Color.lighten(Color.Blue, 0.3)
Screen.clear(c)
Screen.show()
}
}