-
Notifications
You must be signed in to change notification settings - Fork 4
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 PhetColorScheme for ENERGY #70
Comments
@arouinfar said:
I believe that |
Yep, phetsims/scenery-phet#140 describes the port, and is worth a read. In that issue I said "After porting, designers/developers can discuss how to modify the color scheme.", but I see no evidence that designers where ever involved. Here's the Google Doc that Java's Regarding HTML5 No sims are currently using @arouinfar OK to proceed? |
Signed-off-by: Chris Malley <[email protected]>
Signed-off-by: Chris Malley <[email protected]>
I went ahead and made this change. Here's the summary of what was changed: // PhetColorScheme
ELASTIC_ENERGY: new Color( 0, 204, 255 ),
// HookesLawColors
ENERGY: PhetColorScheme.ELASTIC_ENERGY, "Before" screenshot from 1.0.15 production version: "After" screenshot from master: @arouinfar if this looks OK, please close. |
@arouinfar Just out of curiosity... Could you explain why the graphs are labeled "Potential Energy" and we're using the color for elastic energy, not potential energy? |
Thanks @pixelzoom, Potential energy is stored energy, and can take various forms -- gravitational, elastic, chemical, electric, or magnetic. Generally, PhET sims have only dealt with gravitational potential energy and elastic potential energy. When in a given context, it's not uncommon to simply refer to this stored energy as "potential energy", such as the elastic potential energy in Hooke's Law or the gravitational potential energy in Energy Skate Park: Basics or Pendulum Lab. However, in a context like Masses and Springs, which has multiple types of potential energy, the sim would include the "elastic" or "gravitational" modifier. If anything, PhetColorScheme could better describe |
Reassigning to @pixelzoom, rather than closing, so he has a chance to see #70 (comment). If all looks good, please close. |
@arouinfar Thanks for the clarification. You said:
I don't think verbosity is a problem in this case, and I'm in the favor of using the more verbose names rather than a comment. Since Hooke's Law is the only sim using either of these color, now would be a good time to change their names. OK to change in |
Sounds good @pixelzoom, please update the names in |
…ms/hookes-law#70 Signed-off-by: Chris Malley <[email protected]>
Signed-off-by: Chris Malley <[email protected]>
Summary of changes: // PhetColorScheme
ELASTIC_POTENTIAL_ENERGY: new Color( 0, 204, 255 ),
GRAVITATIONAL_POTENTIAL_ENERGY: Color.BLUE, // formerly POTENTIAL_ENERGY in Java implementation
// HookesLawColor
ENERGY: PhetColorScheme.ELASTIC_POTENTIAL_ENERGY, Closing. |
See phetsims/scenery-phet#456.
Looks like HookesLawColors.ENERGY
rgb( 3, 205, 255 )
should be usingPhetColorScheme.ELASTIC_ENERGY
.I've always seen PhET sims use a cyan(ish) color for elastic energy, so not sure where the plum color
rgb(153, 51, 102)
specified inPhetColorScheme
originates from. Marking asstatus:on-hold
until phetsims/scenery-phet#456 is sorted out.The text was updated successfully, but these errors were encountered: