Skip to content

Instantly share code, notes, and snippets.

@Achifaifa
Created July 18, 2016 20:28
Show Gist options
  • Save Achifaifa/4995fb3ef9075444e19f27e0ecc02a4f to your computer and use it in GitHub Desktop.
Save Achifaifa/4995fb3ef9075444e19f27e0ecc02a4f to your computer and use it in GitHub Desktop.
Gameboy colour palette for matplotlib
cdict={'red': ((0.0, 0.0, 0.15),
(0.25, 0.15, 0.48),
(0.50, 0.48, 0.139),
(0.75, 0.139, 0.155),
(1.00, 0.155, 0.155)),
'green': ((0.0, 0.0, 0.56),
(0.25, 0.56, 0.98),
(0.50, 0.98, 0.172),
(0.75, 0.172, 0.188),
(1.00, 0.188, 0.188)),
'blue': ((0.0, 0.0, 0.15),
(0.25, 0.15, 0.48),
(0.50, 0.48, 0.15),
(0.75, 0.15, 0.15),
(1.00, 0.15, 0.15)),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment