Skip to content

Commit

Permalink
Rename DOT/Util and SCENERY/Util to Utils, see phetsims/tasks#966
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid authored and Saurabh Totey committed May 12, 2021
1 parent 8c3e39f commit e6d6726
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/explore/model/TemperatureToColorMapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ define( require => {

// modules
const Color = require( 'SCENERY/util/Color' );
const Util = require( 'DOT/Util' );
const Utils = require( 'DOT/Utils' );
const numberLineIntegers = require( 'NUMBER_LINE_INTEGERS/numberLineIntegers' );

// constants
Expand Down Expand Up @@ -56,7 +56,7 @@ define( require => {

// Clamp the value. While it would be possible to create and use a linear function for out-of-bounds values, but
// so far this has not been necessary, so it doesn't seem worth it. Add it if you need it.
const clampedNormalizedTemperature = Util.clamp( normalizedTemperature, 0, 1 );
const clampedNormalizedTemperature = Utils.clamp( normalizedTemperature, 0, 1 );

// return the mapped color
return this.redYellowBlueReverse( clampedNormalizedTemperature );
Expand Down Expand Up @@ -99,9 +99,9 @@ define( require => {
}

return new Color(
Util.roundSymmetric( red * 255 ),
Util.roundSymmetric( green * 255 ),
Util.roundSymmetric( blue * 255 )
Utils.roundSymmetric( red * 255 ),
Utils.roundSymmetric( green * 255 ),
Utils.roundSymmetric( blue * 255 )
);
}

Expand Down

0 comments on commit e6d6726

Please sign in to comment.