Skip to content

Commit

Permalink
[puzzle-geometry] Update icosahedron colors to be more vibrant and di…
Browse files Browse the repository at this point in the history
…stinct.

This implements the colors from #336 (comment) with slight tweaks:

- Lavender: slightly lighter for better contrast with other colors
- Black: replaced with (very) dark gray to avoid blending with the foundation color.
  • Loading branch information
lgarron committed Oct 3, 2024
1 parent 2b54116 commit 2ddd0dd
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions src/cubing/puzzle-geometry/PuzzleGeometry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ enum PGColors {
Aqua = "#3399ff",
DarkGreen = "#008800",
Lime = "#99ff00",
DarkGray = "#5c5c5c",
Teal = "#007a89",
Brown = "#7d3b11",
Lavender = "#b9a1ff",
SeaGreen = "#5ec4b6",
VeryDarkGray = "#292929",
Burgundy = "#980000",
Cerise = "#d41f69",
}

// TODO: change this back to a const JSON definition.
Expand Down Expand Up @@ -331,26 +339,26 @@ function defaultcolors(): any {
D: PGColors.Gray,
},
20: {
R: "#db69f0",
C: "#178fde",
F: "#23238b",
E: "#9cc726",
L: "#2c212d",
U: "#177fa7",
A: "#e0de7f",
G: "#2b57c0",
I: "#41126b",
S: "#4b8c28",
H: "#7c098d",
J: "#7fe7b4",
B: "#85fb74",
K: "#3f4bc3",
D: "#0ff555",
M: "#f1c2c8",
O: "#58d340",
P: "#c514f2",
N: "#14494e",
Q: "#8b1be1",
R: PGColors.Yellow,
C: PGColors.Cerise,
F: PGColors.DarkGreen,
E: PGColors.DarkGray,
L: PGColors.Purple,
U: PGColors.White,
A: PGColors.Teal,
G: PGColors.Red,
I: PGColors.Brown,
S: PGColors.Lavender,
H: PGColors.Aqua,
J: PGColors.SeaGreen,
B: PGColors.Green,
K: PGColors.Cream,
D: PGColors.Gray,
M: PGColors.Pink,
O: PGColors.VeryDarkGray,
P: PGColors.Orange,
N: PGColors.Burgundy,
Q: PGColors.Blue,
},
};
}
Expand Down

0 comments on commit 2ddd0dd

Please sign in to comment.