nikolaydubina / treemap

🍬 Pretty Treemaps
149 stars 2 forks source link

Default heat colors counterintuitive #24

Open mlange-42 opened 1 year ago

mlange-42 commented 1 year ago

Currently, the default heat coloring ranges from red to blue for low to high heat values.

Given the term "heat", I would expect the opposite.

Here is an example from dirstat, which uses log(#files) for coloring:

grafik

nikolaydubina commented 1 year ago

make sense.

this is ReBu pallet. Red=0 -> Blue=1.

If we want Blue=0 -> Red=1, then need to create new pallet BuRe in render/palletes/BuRe.csv and expose it in render/colorful_palette.go and CLI helper message in cmd/main.go

mlange-42 commented 1 year ago

Sure, it is clear how to add palettes. Have a standard HSV palette locally (will PR it). I guess the palette lookup code could be simplified, but I am not familiar with Go's embedding yet. At least a map could help to have everything in one place.

My intent to open this issue was not about customization, but that I felt that the default is counterintuitive.
If you prefer to not consider this, good as well!