Skip to content

Commit

Permalink
Added a few new built-in colormaps
Browse files Browse the repository at this point in the history
- france, which goes from blue to white to red, in the exact colors of the french flag
- seismic, which is blue to white to red with brightness d0
- coolio, which is cyan to white to magenta with brightness d0
- coleus, which is green to white to magenta with brightness d0
  • Loading branch information
chr5tphr committed Oct 14, 2021
1 parent 63779db commit 3a12762
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zennit/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
'coldnhot': '0ff,00f,80:000,f00,ff0,fff',
# combination of wblue (reversed) and wred, centered around white
'bwr': '00f,80:fff,f00',
# red to white to blue as in the french flag
'france': '0055a4,80:fff,ef4135',
# red to white to blue with brightness 0xd0
'seismic': 'd00000,80:d0d0d0,0000d0',
# cyan to white to magenta with brightness 0xd0
'coolio': '00d0d0,80:d0d0d0,d000d0',
# green to white to magenta with brightness 0xd0
'coleus': '00d000,80:d0d0d0,d000d0',
})


Expand Down

0 comments on commit 3a12762

Please sign in to comment.