Removed hueShift from move indicators as incompatible with some targets

This commit is contained in:
Maciej Caderek
2022-05-03 03:47:14 +02:00
parent 9e4ddbcad3
commit 5aa7b59731
71 changed files with 6 additions and 103 deletions

View File

@@ -31,37 +31,10 @@ const drawMoveIndicators = async (
(v) => v * squareSize + borderWidth (v) => v * squareSize + borderWidth
); );
let fromStyle; const style = {
let toStyle;
if (moveIndicator.hueShift !== 0) {
const newLight: Solid = {
type: "solid",
data: {
color: light.data.color
? changeHSL(light.data.color, moveIndicator.hueShift)
: "#00ff0055",
},
};
const newDark: Solid = {
type: "solid",
data: {
color: dark.data.color
? changeHSL(dark.data.color, moveIndicator.hueShift)
: "#00ff0055",
},
};
fromStyle = (x0 + y0) % 2 === 0 ? newLight : newDark;
toStyle = (x1 + y1) % 2 === 0 ? newLight : newDark;
} else {
fromStyle = {
type: "solid", type: "solid",
data: { color: moveIndicator.color }, data: { color: moveIndicator.color },
} as SquareStyle; } as SquareStyle;
toStyle = fromStyle;
}
drawRectangle( drawRectangle(
ctx, ctx,
@@ -69,7 +42,7 @@ const drawMoveIndicators = async (
squareSize, squareSize,
fromX, fromX,
fromY + margin, fromY + margin,
fromStyle, style,
loadImage loadImage
); );
drawRectangle( drawRectangle(
@@ -78,7 +51,7 @@ const drawMoveIndicators = async (
squareSize, squareSize,
toX, toX,
toY + margin, toY + margin,
toStyle, style,
loadImage loadImage
); );
}; };

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#3cff0055", color: "#3cff0055",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffaa0055", color: "#ffaa0055",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ffff55", color: "#00ffff55",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffaa0055", color: "#ffaa0055",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff0055", color: "#ffff0055",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#3cff0055", color: "#3cff0055",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#3cff0055", color: "#3cff0055",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff00ff55", color: "#ff00ff55",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ffff55", color: "#00ffff55",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ffee55", color: "#00ffee55",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ffee55", color: "#00ffee55",
}, },
border: { border: {

View File

@@ -22,7 +22,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffaa0055", color: "#ffaa0055",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#55ff0033", color: "#55ff0033",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#1c67c933", color: "#1c67c933",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#1c67c933", color: "#1c67c933",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#55ff0033", color: "#55ff0033",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#55ff0022", color: "#55ff0022",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#55ff0022", color: "#55ff0022",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff007733", color: "#ff007733",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff007733", color: "#ff007733",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#55ff0022", color: "#55ff0022",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#55ff0022", color: "#55ff0022",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#55ff0022", color: "#55ff0022",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#55ff0022", color: "#55ff0022",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#0099ff55", color: "#0099ff55",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff000044", color: "#ff000044",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#7dacc97f", color: "#7dacc97f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff0055", color: "#ffff0055",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff007f", color: "#ffff007f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00bfff7f", color: "#00bfff7f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ff807f", color: "#00ff807f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#40ff007f", color: "#40ff007f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff38637f", color: "#ff38637f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff38af7f", color: "#ff38af7f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffaf387f", color: "#ffaf387f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff007f", color: "#ffff007f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00a5ff7f", color: "#00a5ff7f",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#40bf4044", color: "#40bf4044",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#9bc70069", color: "#9bc70069",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#40bf4044", color: "#40bf4044",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#0088ff66", color: "#0088ff66",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff00bb33", color: "#ff00bb33",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#33ff0033", color: "#33ff0033",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ff0033", color: "#00ff0033",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ff0033", color: "#00ff0033",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ffaa55", color: "#00ffaa55",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff770055", color: "#ff770055",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#55ff0055", color: "#55ff0055",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff0033", color: "#ffff0033",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#0077ff33", color: "#0077ff33",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ff0033", color: "#00ff0033",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#009dff33", color: "#009dff33",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#7b00ff33", color: "#7b00ff33",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff0055", color: "#ffff0055",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff0055", color: "#ffff0055",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff00d433", color: "#ff00d433",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff910044", color: "#ff910044",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff0033", color: "#ffff0033",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00aaff44", color: "#00aaff44",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#aaff0033", color: "#aaff0033",
}, },
border: { border: {

View File

@@ -27,7 +27,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ff0033", color: "#00ff0033",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#9940bf33", color: "#9940bf33",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#bd4b2b2a", color: "#bd4b2b2a",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff00d044", color: "#ff00d044",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff0055", color: "#ffff0055",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffbf0044", color: "#ffbf0044",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#00ffff55", color: "#00ffff55",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ffff0055", color: "#ffff0055",
}, },
border: { border: {

View File

@@ -21,7 +21,6 @@ const style: Style = {
}, },
}, },
moveIndicator: { moveIndicator: {
hueShift: 0,
color: "#ff000044", color: "#ff000044",
}, },
border: { border: {

View File

@@ -49,7 +49,6 @@ export type Coords = {
export type SquareStyle = Gradient | Solid | Image; export type SquareStyle = Gradient | Solid | Image;
export type MoveIndicator = { export type MoveIndicator = {
hueShift: 0;
color: string; color: string;
}; };