-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use Color.interpolateRGBA() for energy level colors in NucleonShellView #85
Comments
Working on this now. |
Tagging phetsims/shred@84a635e as the original commit where the manual interpolation was committed. https://github.com/phetsims/shred/blob/e5d99a25c55e21f061dba057a6299c47bb12e6f5/js/view/ParticleNode.ts#L28-L36 |
|
…instead of colorGradientIndexNumberProperty), #85
…instead of colorGradientIndexNumberProperty), phetsims/build-a-nucleus#85
…instead of colorGradientIndexNumberProperty), phetsims/build-a-nucleus#85
Ok Good progress on ParticleNode above, now onto NucleonShellView. |
…nterpolate colors instead of hard coding the spectrum, phetsims/build-a-nucleus#85
…nterpolate colors instead of hard coding the spectrum, #85
Ok. This has all been simplified. @Luisav1 will you please give these commits a spot check and feel free to close. |
…PACITY constants are being used instead. See #85.
Thanks @zepumph, this looks great. Closing. |
I noticed there's still a TODO pointing to this issue: build-a-nucleus/js/common/view/ParticleAtomNode.ts Lines 165 to 168 in d123a18
This similar code is also in these two other places:
|
@Luisav1 and I would like to ignore and delete the TODO, and the just factor out the |
The TODO was removed in the commit above and the RadialGradient is now created in BANConstants. Closing. |
Use Color.interpolateRGBA() where you set the stroke of energy levels in NucleonShellView instead of having a manually calculated array of a range of colors. Such that only the initial and final color properties of the energy levels are needed.
Change link on nucleonCountProperty to multilink that also listens to when the initial + final color properties change.
The text was updated successfully, but these errors were encountered: