Skip to content

Commit

Permalink
Change color code to color name and add documentation. See #112.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luisav1 committed Aug 14, 2023
1 parent 383596e commit 5d7c0f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/common/BANColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
} ),
Expand All @@ -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
Expand Down Expand Up @@ -99,7 +99,7 @@ const BANColors = {
} ),

availableDecaysPanelBackgroundColorProperty: new ProfileColorProperty( buildANucleus, 'availableDecaysPanelBackground', {
default: '#F2F2F2'
default: new Color( 242, 242, 242 )
} ),

chartAccordionBoxBackgroundColorProperty: new ProfileColorProperty( buildANucleus, 'chartAccordionBoxBackgroundColor', {
Expand Down Expand Up @@ -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
} )
};

Expand Down

0 comments on commit 5d7c0f3

Please sign in to comment.