Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches

◆ darken()

Tuple['r', 'g', 'b'] Cope.colors.darken (   amt,
args 
)

Returns the given color, but darkened.

Returns the given color, but lightened.

Make amount negative to lighten NOTE: If you pass alpha to this function it will still work, but it won't return it. NOTE: If you pass OpenGL colors to this, it will work, but amt still has to be within 0-255

Make amount negative to darken NOTE: If you pass alpha to this function it will still work, but it won't return it. NOTE: If you pass OpenGL colors to this, it will work, but amt still has to be within 0-255

Definition at line 251 of file colors.py.