Skip to content

Commit

Permalink
revise colors related to energy, #456
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
  • Loading branch information
pixelzoom committed Jan 10, 2019
1 parent 6014b5e commit 92a326c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions js/PhetColorScheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,20 @@ define( function( require ) {
var DARK_GREEN = new Color( 0, 200, 0 );
var RED_COLORBLIND = new Color( 255, 85, 0 ); // looks good in colorblind tests, typically used in place of 'red'
var GREEN_COLORBLIND = new Color( 0, 135, 0 ); // looks good in colorblind tests when used alongside RED_COLORBLIND
var TAN_ORANGE = new Color( 236, 153, 55 );
var PHET_LOGO_BLUE = new Color( 106, 206, 245 ); // the color of the blue in the PhET logo
var PHET_LOGO_YELLOW = new Color( 254, 225, 5 ); // the color of the yellow in the PhET logo

var PhetColorScheme = {
ACCELERATION: Color.GREEN,
APPLIED_FORCE: TAN_ORANGE,
APPLIED_FORCE: new Color( 236, 153, 55 ),
BUTTON_YELLOW: PHET_LOGO_YELLOW,
ELASTIC_POTENTIAL_ENERGY: new Color( 0, 204, 255 ),
FRICTION_FORCE: RED_COLORBLIND,
GRAVITATIONAL_FORCE: new Color( 50, 130, 215 ),
GRAVITATIONAL_POTENTIAL_ENERGY: Color.BLUE, // formerly POTENTIAL_ENERGY in Java implementation
GRAVITATIONAL_POTENTIAL_ENERGY: new Color( 55, 130, 215 ),
HEAT_THERMAL_ENERGY: RED_COLORBLIND,
IMAGINARY_PART: new Color( 153, 51, 102 ),
KINETIC_ENERGY: Color.GREEN,
KINETIC_ENERGY: new Color( 30, 200, 45 ),
NET_WORK: DARK_GREEN,
NORMAL_FORCE: new Color( 255, 235, 0 ),
PHET_LOGO_BLUE: PHET_LOGO_BLUE,
Expand All @@ -47,7 +46,7 @@ define( function( require ) {
RED_COLORBLIND: RED_COLORBLIND,
RESET_ALL_BUTTON_BASE_COLOR: new Color( 247, 151, 34 ),
GREEN_COLORBLIND: GREEN_COLORBLIND,
TOTAL_ENERGY: TAN_ORANGE,
TOTAL_ENERGY: new Color( 180, 180, 0 ),
TOTAL_FORCE: DARK_GREEN,
VELOCITY: RED_COLORBLIND,
WALL_FORCE: new Color( 153, 51, 0 )
Expand Down

0 comments on commit 92a326c

Please sign in to comment.