Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide pre-defined colormaps #19

Closed
philipbelesky opened this issue Sep 5, 2019 · 5 comments
Closed

Provide pre-defined colormaps #19

philipbelesky opened this issue Sep 5, 2019 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@philipbelesky
Copy link
Collaborator

philipbelesky commented Sep 5, 2019

This would be pretty far down the list of priorities, but I thought I'd put it out there while I have the link in front of me. Google has published a colormap library for depth images that more uniformly maps between color bands and spatial bands. In an ideal world the gradient used to color the pixels would be entirely user-controlled, but this might be an interesting option to consider as a robust default.

@mariuszhermansdorfer
Copy link
Owner

mariuszhermansdorfer commented Sep 5, 2019

Yeah, we definitely need some better looking color ramps. The one currently used was just the easiest to generate by I don't really like the way it looks. I'd like to have a library of more 'landscapy' gradients such as these:
example 1
example 2
example 3

Some more theory on color ramps here and here

@mariuszhermansdorfer mariuszhermansdorfer added the enhancement New feature or request label Sep 5, 2019
@mariuszhermansdorfer mariuszhermansdorfer added this to the Release 1.0 milestone Sep 28, 2019
@mariuszhermansdorfer mariuszhermansdorfer changed the title Consider a more perceptually uniform colormap Provide pre-defined colormaps Sep 28, 2019
@mariuszhermansdorfer
Copy link
Owner

Relabeled this issue to reflect a broader scope.

@mariuszhermansdorfer
Copy link
Owner

SandWorm 2.0 now has a few pre-defined color maps for the elevation analysis, as well as the option to provide a user-defined color list:

Chile:
image

Desert:
image

Europe:
image

Greyscale:
image

Mars:
image

Ocean:
image

Rainbow:
image

Custom:
image

Of course, everything works with contour lines display as well:
image

@BarusXXX, @philipbelesky let me know if you can recommend any sources for good quality landscape color palettes.

@philipbelesky
Copy link
Collaborator Author

Love the names here! I've added the struct for the Turbo palette from one of my links above. That uses about 14 steps though, so I'll rewrite the lookup table code to handle dynamic ranges for steps and send that through as a PR.

@mariuszhermansdorfer
Copy link
Owner

mariuszhermansdorfer commented Aug 18, 2021

Perfect!
Regarding naming patterns - I started with Mars, but then saw the opportunity and renamed it to Dune.
Now the plugin is complete.

I re-read the post on the Turbo palette. feel free to replace the one currently labeled as 'Rainbow' with it. It makes sense to only keep the newer one.

philipbelesky added a commit to philipbelesky/SandWorm that referenced this issue Aug 19, 2021
mariuszhermansdorfer added a commit that referenced this issue Aug 19, 2021
Rework colormaps and add new options (closes #19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants