phetsims / collision-lab

"Collision Lab" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 4 forks source link

Update colors #131

Closed arouinfar closed 4 years ago

arouinfar commented 4 years ago

Self-assigning to experiment with CollisionLabColors.js.

arouinfar commented 4 years ago

I'll fold this into to testing https://github.com/phetsims/QA/issues/524.

arouinfar commented 4 years ago

For https://github.com/phetsims/QA/issues/529

I thought the ball colors could be a bit more saturated. The color momentum should also be changed since we usually reserve yellow for acceleration. I experimented locally with the colors, and found some that I think work nicely. Collision Lab screenshot (3) Collision Lab screenshot (1) Collision Lab screenshot (2) Collision Lab screenshot

These are color changes from the screenshots above:

BALL_COLORS: [
    new Color( 37, 221, 222 ),
    new Color( 325, 37, 173 ),
    new Color( 149, 27, 235 ),
    new Color( 235, 192, 27 )    
  ],
 MOMENTUM_VECTOR_FILL: 'rgb( 71, 79, 179 )',

@ariel-phet do these look reasonable to you? Any objections/suggestions?

brandonLi8 commented 4 years ago

@arouinfar FYI the second color in BALL_COLORS (new Color( 325, 37, 173 )) is equivalent to new Color( 255, 37, 173 )) since rgb values only go up to 255.

@ariel-phet I pushed these changes to master so you can see it in action. Please close if master is good.

arouinfar commented 4 years ago

@arouinfar FYI the second color in BALL_COLORS (new Color( 325, 37, 173 )) is equivalent to new Color( 255, 37, 173 )) since rgb values only go up to 255.

🤦‍♀️ Looking at my illustrator file, I meant to use rgb(235, 37, 173) which got corrected to rgb(255, 37, 173). However, I think it was a happy accident because a red value of 255 leads to an improved contrast between the magenta and purple balls.

ariel-phet commented 4 years ago

@arouinfar generally I think these work quite nicely, but I have to say I am not a big fan of the "yellow" color. It feels a bit mustard to me...could it be more orange? That feels like it would be more consistent.

brandonLi8 commented 4 years ago

@ariel-phet we already use orange for the center-of-mass. Would it be a problem if we have colliding colors?

arouinfar commented 4 years ago

Thanks for the feedback @ariel-phet. I originally went with mustard because it was a color that doesn't already appear in the sim and is dark enough for the path to be seen against the background.

If we want to go with something more in the vein of yellow-orange, rgb( 248, 151, 16 ) is an option. It's a bit close to the current COM color, so I experimented with alternatives for the COM.

Option 1: Original Color

Collision Lab screenshot (8) Collision Lab screenshot (9)

Option 2: Forest Green

  CENTER_OF_MASS_FILL: new Color( 39, 145, 86 ),

Collision Lab screenshot (1) Collision Lab screenshot

Option 3: Red

  CENTER_OF_MASS_FILL: new Color( 248, 4, 37 ),

Collision Lab screenshot (2) Collision Lab screenshot (3)

Option 4: Black

  CENTER_OF_MASS_FILL: Color.BLACK,
  CENTER_OF_MASS_STROKE: Color.BLACK,

Collision Lab screenshot (6) Collision Lab screenshot (7)

Personally, my preference would be to stick with mustard or go with option 1. What would you prefer @ariel-phet?

ariel-phet commented 4 years ago

@arouinfar I think @kathy-phet had some thoughts. We should probably have a quick collision lab meeting at design this week anyhow since it is so close to publication to finalize.

arouinfar commented 4 years ago

Sounds good @ariel-phet. Please include a link to this issue in the preflight.

arouinfar commented 4 years ago

Discussed in the 8/27/20 design meeting.

@kathy-phet gave these colors a 👍 over Slack.

@jonathanolson please make the following changes:

jonathanolson commented 4 years ago

Should be complete with the above commit, can you verify?

arouinfar commented 4 years ago

Looks great!