method
Color.darken
Color.darken(c, amount) -> int
Multiplies each channel of c by 1 - amount (amount a fixed 0..1), returning a darker color. Color.darken(c, 0.0) is unchanged and 1.0 is black. Handy for shadows and pressed-button states.
Example
program Demo {
handler DrawWorld phase Render {
let c = Color.darken(Color.Red, 0.3)
Screen.clear(c)
Screen.show()
}
}