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

offer some color presets #2

Open
ja-he opened this issue May 5, 2023 · 0 comments
Open

offer some color presets #2

ja-he opened this issue May 5, 2023 · 0 comments
Assignees

Comments

@ja-he
Copy link
Owner

ja-he commented May 5, 2023

inspo: https://matplotlib.org/stable/tutorials/colors/colormaps.html

example for magma:

require("fugitive-blame-heatmap").setup({
  colors = {
    [1] = { value = 0.00, color = "#06051a" },
    [2] = { value = 0.25, color = "#792281" },
    [3] = { value = 0.50, color = "#bb3876" },
    [4] = { value = 0.75, color = "#f56b5b" },
    [5] = { value = 1.00, color = "#fbfbbf" },
  },
})

just went through with a colorpicker, basically since rn there's just an RGB lerp, nicer color-interp can be emulated by specifying more fixpoints

@ja-he ja-he self-assigned this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant