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

Adjust opacity of cluster layers when changing modes #11

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

Carifio24
Copy link
Member

This PR adds some functionality to modify the opacity of the cluster layers between the 2D and 3D modes.

In the 3D mode, we keep the clusters the same as they are in the interactive figure, which means a max opacity of 0.2. In the 2D mode, we then move back to having the max opacity be 0.5, which is what it previously was in this story. Since every cluster has a different opacity based on its phase, I kept the conversions simple by just multiplying/dividing by 0.5/0.2 = 2.5 when we change mode.

@patudom patudom merged commit 7617830 into cosmicds:main Feb 16, 2024
1 check passed
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.

2 participants