Created
June 10, 2017 12:50
-
-
Save rawlik/744b70099fbd8cc5256a76486c5c759e to your computer and use it in GitHub Desktop.
Brighten any color in matplotlib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def brighten(color, v): | |
return np.array(matplotlib.colors.to_rgb(color)) ** (1 - v) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment