Skip to content

Commit

Permalink
Move colour breaks around to show more detail at low tile sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebubuth committed Oct 10, 2018
1 parent a37391b commit b22fe47
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scoville/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,23 +249,23 @@ def heatmap(url, port):
def colour_map(size):
kb = size / 1024

if kb < 50:
if kb < 6:
return '#ffffff'
elif kb < 100:
elif kb < 12:
return '#fff7ec'
elif kb < 150:
elif kb < 25:
return '#fee8c8'
elif kb < 200:
elif kb < 50:
return '#fdd49e'
elif kb < 250:
elif kb < 75:
return '#fdbb84'
elif kb < 300:
elif kb < 125:
return '#fc8d59'
elif kb < 500:
elif kb < 250:
return '#ef6548'
elif kb < 750:
elif kb < 500:
return '#d7301f'
elif kb < 1000:
elif kb < 750:
return '#990000'
else:
return '#000000'
Expand Down

0 comments on commit b22fe47

Please sign in to comment.