Skip to content

Commit

Permalink
[twisty] Change blue hint stickers for Cube3D to be less purplish.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jul 30, 2021
1 parent ea11207 commit ba5f2fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cubing/twisty/3D/puzzles/Cube3D.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class AxisInfo {
public color: number,
public dimColor: number,
public hintOpacityScale: number, // TODO: make this work better across bright *and* dark backgrounds. Maybe tweak sticker compositing settings?
options?: { hintColor?: number; hintDimColor?: number },
) {
// TODO: Make sticker material single-sided when cubie foundation is opaque?
this.stickerMaterial = {
Expand All @@ -99,13 +100,13 @@ class AxisInfo {
};
this.hintStickerMaterial = {
regular: new MeshBasicMaterial({
color,
color: options?.hintColor ?? color,
side: BackSide,
transparent: true,
opacity: 0.5 * hintOpacityScale,
}),
dim: new MeshBasicMaterial({
color: dimColor,
color: options?.hintDimColor ?? color,
side: BackSide,
transparent: true,
opacity: 0.5 * hintOpacityScale,
Expand Down Expand Up @@ -146,6 +147,7 @@ const axesInfo: AxisInfo[] = [
0x0000ff,
0x000088,
0.75,
{ hintColor: 0x0044ff, hintDimColor: 0x002288 },
),
new AxisInfo(
new Vector3(0, -1, 0),
Expand Down

0 comments on commit ba5f2fb

Please sign in to comment.