Skip to content

Commit

Permalink
factor out constants for level capacity, reuse color constants, and i…
Browse files Browse the repository at this point in the history
…nterpolate colors instead of hard coding the spectrum, phetsims/build-a-nucleus#85
  • Loading branch information
zepumph committed Aug 2, 2023
1 parent 8ec286f commit 2349594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/model/Particle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const PARTICLE_COLORS: Record<ParticleTypeString, Color> = {
proton: PhetColorScheme.RED_COLORBLIND,
neutron: Color.GRAY,
electron: Color.BLUE,
positron: Color.GREEN,
positron: new Color( 53, 182, 74 ), // Darkish green
Isotope: Color.BLACK
};

Expand Down

0 comments on commit 2349594

Please sign in to comment.