From 5d7c0f3d72600fa5cac0969d41c7caf327638755 Mon Sep 17 00:00:00 2001 From: Luisav1 Date: Mon, 14 Aug 2023 07:42:01 -0600 Subject: [PATCH] Change color code to color name and add documentation. See https://github.com/phetsims/build-a-nucleus/issues/112. --- js/common/BANColors.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/common/BANColors.ts b/js/common/BANColors.ts index 970b0f0..f5482c4 100644 --- a/js/common/BANColors.ts +++ b/js/common/BANColors.ts @@ -31,7 +31,7 @@ const BANColors = { default: PARTICLE_COLORS.positron } ), - // decay colors + // decay colors in the nuclide chart protonEmissionColorProperty: new ProfileColorProperty( buildANucleus, 'protonEmissionColor', { default: new Color( 247, 2, 93 ) } ), @@ -51,7 +51,7 @@ const BANColors = { default: new Color( 27, 20, 100 ) } ), unknownColorProperty: new ProfileColorProperty( buildANucleus, 'unknownColor', { - default: new Color( 255, 255, 255 ) + default: Color.WHITE } ), // background color for panels in this sim @@ -99,7 +99,7 @@ const BANColors = { } ), availableDecaysPanelBackgroundColorProperty: new ProfileColorProperty( buildANucleus, 'availableDecaysPanelBackground', { - default: '#F2F2F2' + default: new Color( 242, 242, 242 ) } ), chartAccordionBoxBackgroundColorProperty: new ProfileColorProperty( buildANucleus, 'chartAccordionBoxBackgroundColor', { @@ -153,11 +153,11 @@ const BANColors = { } ), availableDecaysInfoButtonColorProperty: new ProfileColorProperty( buildANucleus, 'availableDecaysInfoButtonColor', { - default: new Color( 255, 255, 255 ) + default: Color.WHITE } ), fullChartButtonColorProperty: new ProfileColorProperty( buildANucleus, 'fullChartButtonColor', { - default: new Color( 255, 255, 255 ) + default: Color.WHITE } ) };