Board styles - crated script for chesscom board styles, changed moves indicator type to handle different targets
This commit is contained in:
@@ -34,12 +34,12 @@ const drawMoveIndicators = async (
|
||||
let fromStyle;
|
||||
let toStyle;
|
||||
|
||||
if (moveIndicator.type === "hueShift") {
|
||||
if (moveIndicator.hueShift !== 0) {
|
||||
const newLight: Solid = {
|
||||
type: "solid",
|
||||
data: {
|
||||
color: light.data.color
|
||||
? changeHSL(light.data.color, moveIndicator.data)
|
||||
? changeHSL(light.data.color, moveIndicator.hueShift)
|
||||
: "#00ff0055",
|
||||
},
|
||||
};
|
||||
@@ -48,7 +48,7 @@ const drawMoveIndicators = async (
|
||||
type: "solid",
|
||||
data: {
|
||||
color: dark.data.color
|
||||
? changeHSL(dark.data.color, moveIndicator.data)
|
||||
? changeHSL(dark.data.color, moveIndicator.hueShift)
|
||||
: "#00ff0055",
|
||||
},
|
||||
};
|
||||
@@ -58,7 +58,7 @@ const drawMoveIndicators = async (
|
||||
} else {
|
||||
fromStyle = {
|
||||
type: "solid",
|
||||
data: { color: moveIndicator.data },
|
||||
data: { color: moveIndicator.color },
|
||||
} as SquareStyle;
|
||||
toStyle = fromStyle;
|
||||
}
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#3cff0055",
|
||||
hueShift: 0,
|
||||
color: "#3cff0055",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffaa0055",
|
||||
hueShift: 0,
|
||||
color: "#ffaa0055",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ffff55",
|
||||
hueShift: 0,
|
||||
color: "#00ffff55",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffaa0055",
|
||||
hueShift: 0,
|
||||
color: "#ffaa0055",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff0055",
|
||||
hueShift: 0,
|
||||
color: "#ffff0055",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#3cff0055",
|
||||
hueShift: 0,
|
||||
color: "#3cff0055",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#3cff0055",
|
||||
hueShift: 0,
|
||||
color: "#3cff0055",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ff00ff55",
|
||||
hueShift: 0,
|
||||
color: "#ff00ff55",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ffff55",
|
||||
hueShift: 0,
|
||||
color: "#00ffff55",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ffee55",
|
||||
hueShift: 0,
|
||||
color: "#00ffee55",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ffee55",
|
||||
hueShift: 0,
|
||||
color: "#00ffee55",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -22,8 +22,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffaa0055",
|
||||
hueShift: 0,
|
||||
color: "#ffaa0055",
|
||||
},
|
||||
border: {
|
||||
type: "gradient",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ff007733",
|
||||
hueShift: 0,
|
||||
color: "#ff007733",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ff007733",
|
||||
hueShift: 0,
|
||||
color: "#ff007733",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0022",
|
||||
hueShift: 0,
|
||||
color: "#55ff0022",
|
||||
},
|
||||
border: {
|
||||
type: "image",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: 70,
|
||||
hueShift: 70,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ff000044",
|
||||
hueShift: 0,
|
||||
color: "#ff000044",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#7dacc97f",
|
||||
hueShift: 0,
|
||||
color: "#7dacc97f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff0055",
|
||||
hueShift: 0,
|
||||
color: "#ffff0055",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff007f",
|
||||
hueShift: 0,
|
||||
color: "#ffff007f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00bfff7f",
|
||||
hueShift: 0,
|
||||
color: "#00bfff7f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ff807f",
|
||||
hueShift: 0,
|
||||
color: "#00ff807f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#40ff007f",
|
||||
hueShift: 0,
|
||||
color: "#40ff007f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ff38637f",
|
||||
hueShift: 0,
|
||||
color: "#ff38637f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ff38af7f",
|
||||
hueShift: 0,
|
||||
color: "#ff38af7f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffaf387f",
|
||||
hueShift: 0,
|
||||
color: "#ffaf387f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff007f",
|
||||
hueShift: 0,
|
||||
color: "#ffff007f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00a5ff7f",
|
||||
hueShift: 0,
|
||||
color: "#00a5ff7f",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: -90,
|
||||
hueShift: -90,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: -40,
|
||||
hueShift: 0,
|
||||
color: "#9bc70069",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: -120,
|
||||
hueShift: -120,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#0088ff66",
|
||||
hueShift: 0,
|
||||
color: "#0088ff66",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: -30,
|
||||
hueShift: -30,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: -30,
|
||||
hueShift: -30,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ff0033",
|
||||
hueShift: 0,
|
||||
color: "#00ff0033",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ff0033",
|
||||
hueShift: 0,
|
||||
color: "#00ff0033",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ffaa55",
|
||||
hueShift: 0,
|
||||
color: "#00ffaa55",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ff770055",
|
||||
hueShift: 0,
|
||||
color: "#ff770055",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#55ff0055",
|
||||
hueShift: 0,
|
||||
color: "#55ff0055",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff0033",
|
||||
hueShift: 0,
|
||||
color: "#ffff0033",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: 40,
|
||||
hueShift: 40,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ff0033",
|
||||
hueShift: 0,
|
||||
color: "#00ff0033",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: 30,
|
||||
hueShift: 30,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: 30,
|
||||
hueShift: 30,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff0055",
|
||||
hueShift: 0,
|
||||
color: "#ffff0055",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff0055",
|
||||
hueShift: 0,
|
||||
color: "#ffff0055",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: 30,
|
||||
hueShift: 30,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: -30,
|
||||
hueShift: -30,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff0033",
|
||||
hueShift: 0,
|
||||
color: "#ffff0033",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: 60,
|
||||
hueShift: 60,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: -30,
|
||||
hueShift: -30,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -27,8 +27,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ff0033",
|
||||
hueShift: 0,
|
||||
color: "#00ff0033",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: 60,
|
||||
hueShift: 60,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: 90,
|
||||
hueShift: 90,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: 30,
|
||||
hueShift: 30,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff0055",
|
||||
hueShift: 0,
|
||||
color: "#ffff0055",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: -30,
|
||||
hueShift: -30,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#00ffff55",
|
||||
hueShift: 0,
|
||||
color: "#00ffff55",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "color",
|
||||
data: "#ffff0055",
|
||||
hueShift: 0,
|
||||
color: "#ffff0055",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -21,8 +21,8 @@ const style: Style = {
|
||||
},
|
||||
},
|
||||
moveIndicator: {
|
||||
type: "hueShift",
|
||||
data: -60,
|
||||
hueShift: -60,
|
||||
color: "#",
|
||||
},
|
||||
border: {
|
||||
type: "solid",
|
||||
|
||||
@@ -48,9 +48,10 @@ export type Coords = {
|
||||
|
||||
export type SquareStyle = Gradient | Solid | Image;
|
||||
|
||||
export type MoveIndicator =
|
||||
| { type: "hueShift"; data: number }
|
||||
| { type: "color"; data: string };
|
||||
export type MoveIndicator = {
|
||||
hueShift: number;
|
||||
color: string;
|
||||
};
|
||||
|
||||
export type StyleCategory = "solid" | "gradient" | "pic" | "custom";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user