Skip to content

feat: Support reversing colormaps on the GPU - #446

Merged
kylebarron merged 3 commits into
mainfrom
kyle/colormap-reversed
Apr 20, 2026
Merged

kylebarron merged 3 commits into
mainfrom
kyle/colormap-reversed

Conversation

@kylebarron

@kylebarron kylebarron commented Apr 20, 2026 •

Copy link
Copy Markdown
Member

Matplotlib has a way to reverse colormaps by reading them with the _r suffix. https://matplotlib.org/stable/gallery/color/colormap_reference.html

Instead of storing twice the number of colormaps, instead we just add a reversed boolean that reverses the lookup on the GPU

Change list

  • Add reversed boolean uniform for reversing colormap lookup

@github-actions github-actions Bot added the feat label Apr 20, 2026
@kylebarron
kylebarron merged commit e1ae7a0 into main Apr 20, 2026
4 checks passed
@kylebarron
kylebarron deleted the kyle/colormap-reversed branch April 20, 2026 15:30
@ds-release-bot ds-release-bot Bot mentioned this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant