-
Notifications
You must be signed in to change notification settings - Fork 6
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
density.global.view.colorProfile
should only contain colors relevant to Density
#89
Comments
How about DensityColors.js and BuoyancyColors.js? |
We still instantiate constant Materials on startup, and have a list of all Materials. Would I need to make color/material loading lazy? This could totally mess up state restoring. |
Would it be easy to have a list of DensityMaterials and BuoyancyMaterials, or is it better to have them all defined together? |
It would be better to have them defined together. |
What about metadata on them that can be used to conditionally instrument? Or conditionally phetioFeature them depending on what sim is being run? |
What about using something like the namespace solution from phetsims/scenery#1259? Or will this not work because they are all defined in the common repo? |
Probably it will be best to just have a ternary on how you provide the Tandem, like for . . . . tandem: DENSITY_IS_THE_SIM ? tandem.createTandem( 'mysteryOrangeColorProperty' ) : Tandem.OPT_OUT |
…n color property tandems, see phetsims/density#89
It looks like the ternary is working best. Committed above, @arouinfar can you verify? |
Thanks @jonathanolson! The tree looks much better now. |
For #76
Several of the colors in the color profile only apply to the Buoyancy simulation. Can they be removed from Density @jonathanolson?
The text was updated successfully, but these errors were encountered: