Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jun 21, 2022
2 parents 23fd71b + 4d58aab commit 7170ca3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions js/BeakerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
import { Shape } from '../../kite/js/imports.js';
import SceneryPhetColors from './SceneryPhetColors.js';
import sceneryPhet from './sceneryPhet.js';
import { IColor, Node, NodeOptions, Path, ProfileColorProperty } from '../../scenery/js/imports.js';
import { Color, IColor, Node, NodeOptions, Path } from '../../scenery/js/imports.js';
import optionize from '../../phet-core/js/optionize.js';
import NumberProperty from '../../axon/js/NumberProperty.js';
import StrictOmit from '../../phet-core/js/types/StrictOmit.js';

type SelfOptions = {
emptyBeakerFill?: IColor;
solutionFill?: ProfileColorProperty;
solutionFill?: IColor;
solutionShadowFill?: IColor;
solutionGlareFill?: IColor;
beakerGlareFill?: IColor;
Expand All @@ -39,12 +39,12 @@ export default class BeakerNode extends Node {

public constructor( solutionLevelProperty: NumberProperty, providedOptions?: BeakerNodeOptions ) {

const solutionGlareFill = providedOptions?.solutionFill?.value.colorUtilsBrighter( 0.2 );
const solutionShadowFill = providedOptions?.solutionFill?.value.colorUtilsDarker( 0.2 );
// if ( providedOptions?.solutionFill ) {
// solutionGlareFill = Color.toColor( providedOptions.solutionFill ).colorUtilsBrighter( 0.5 );
// solutionShadowFill = providedOptions?.solutionFill?.value.colorUtilsDarker( 0.2 );
// }
let solutionGlareFill;
let solutionShadowFill;
if ( providedOptions?.solutionFill ) {
solutionGlareFill = Color.toColor( providedOptions.solutionFill ).colorUtilsBrighter( 0.5 );
solutionShadowFill = Color.toColor( providedOptions?.solutionFill ).colorUtilsDarker( 0.2 );
}

const options = optionize<BeakerNodeOptions, SelfOptions, NodeOptions>()( {
emptyBeakerFill: SceneryPhetColors.emptyBeakerFillProperty,
Expand Down

0 comments on commit 7170ca3

Please sign in to comment.