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

Fixed the sample method. #759

Merged
merged 6 commits into from
Aug 7, 2024

Conversation

odinsbane
Copy link

Colormap.sample would go out of bounds. It was also broken for odd h values. Issue #750

Made a hot fix for generating an image form the ColormapEditor the image was missing 10px so depending on how large the editor was displayed the resulting Colormap always returned black. Issue #757

If this looks ok I can improve it.

Matt added 2 commits May 30, 2024 13:51
with odd h values. Issue scenerygraphics#750

Made a hot fix for generating an image form the ColormapEditor the image
was only halfdrawn. Issue scenerygraphics#757
will slice from the current position. Which might not be zero.
@skalarproduktraum
Copy link
Member

Looks good to me, thank you, @odinsbane! I think it'd only need some formatting cleanup, and the -10 removed, right?

Copy link
Member

@skalarproduktraum skalarproduktraum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor comments. Thanks @odinsbane 👍

src/main/kotlin/graphics/scenery/volumes/ColormapPanel.kt Outdated Show resolved Hide resolved
src/main/kotlin/graphics/scenery/volumes/Colormap.kt Outdated Show resolved Hide resolved
src/main/kotlin/graphics/scenery/volumes/Colormap.kt Outdated Show resolved Hide resolved
src/main/kotlin/graphics/scenery/volumes/Colormap.kt Outdated Show resolved Hide resolved
src/main/kotlin/graphics/scenery/volumes/Colormap.kt Outdated Show resolved Hide resolved
@odinsbane
Copy link
Author

odinsbane commented Jun 12, 2024 via email

Matt added 2 commits June 13, 2024 09:16
markers. This creates a variable 'markerSpace' to show where
the magic -10 appears.
Copy link
Member

@moreApi moreApi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm execpt those two comments. I like that magic numbers get replaced with propper variable names :)

@skalarproduktraum skalarproduktraum merged commit 3eda51f into scenerygraphics:main Aug 7, 2024
4 checks passed
@skalarproduktraum
Copy link
Member

Thanks @odinsbane! I took the liberty of fixing the remaining issues myself, I hope you don't mind.

@odinsbane odinsbane deleted the colormap/sample branch August 9, 2024 08:08
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

Successfully merging this pull request may close these issues.

3 participants