diff --git a/public/pieces/cases/kb.svg b/public/pieces/cases/kb.svg index 4e8739a..96a19c6 100644 --- a/public/pieces/cases/kb.svg +++ b/public/pieces/cases/kb.svg @@ -1,4 +1,4 @@ - + diff --git a/public/pieces/cases/nb.svg b/public/pieces/cases/nb.svg index 96d3b27..8bf31be 100644 --- a/public/pieces/cases/nb.svg +++ b/public/pieces/cases/nb.svg @@ -1,4 +1,4 @@ - + diff --git a/public/pieces/color/bb.svg b/public/pieces/color/bb.svg deleted file mode 100644 index fe332d6..0000000 --- a/public/pieces/color/bb.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/bw.svg b/public/pieces/color/bw.svg deleted file mode 100644 index 540371c..0000000 --- a/public/pieces/color/bw.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/kb.svg b/public/pieces/color/kb.svg deleted file mode 100644 index c8c00f5..0000000 --- a/public/pieces/color/kb.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/kw.svg b/public/pieces/color/kw.svg deleted file mode 100644 index 19b48fc..0000000 --- a/public/pieces/color/kw.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/nb.svg b/public/pieces/color/nb.svg deleted file mode 100644 index 3411b20..0000000 --- a/public/pieces/color/nb.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/nw.svg b/public/pieces/color/nw.svg deleted file mode 100644 index 859b3d0..0000000 --- a/public/pieces/color/nw.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/pb.svg b/public/pieces/color/pb.svg deleted file mode 100644 index 8171055..0000000 --- a/public/pieces/color/pb.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/public/pieces/color/pw.svg b/public/pieces/color/pw.svg deleted file mode 100644 index f7ec922..0000000 --- a/public/pieces/color/pw.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/qb.svg b/public/pieces/color/qb.svg deleted file mode 100644 index c1f2544..0000000 --- a/public/pieces/color/qb.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/qw.svg b/public/pieces/color/qw.svg deleted file mode 100644 index 9f58455..0000000 --- a/public/pieces/color/qw.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/rb.svg b/public/pieces/color/rb.svg deleted file mode 100644 index f7fce43..0000000 --- a/public/pieces/color/rb.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/color/rw.svg b/public/pieces/color/rw.svg deleted file mode 100644 index 54ad2bc..0000000 --- a/public/pieces/color/rw.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/pieces/magnetic/bb.svg b/public/pieces/magnetic/bb.svg new file mode 100644 index 0000000..ecae3dd --- /dev/null +++ b/public/pieces/magnetic/bb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/magnetic/bw.svg b/public/pieces/magnetic/bw.svg new file mode 100644 index 0000000..03cce5b --- /dev/null +++ b/public/pieces/magnetic/bw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/magnetic/kb.svg b/public/pieces/magnetic/kb.svg new file mode 100644 index 0000000..66582a8 --- /dev/null +++ b/public/pieces/magnetic/kb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/magnetic/kw.svg b/public/pieces/magnetic/kw.svg new file mode 100644 index 0000000..5d326d7 --- /dev/null +++ b/public/pieces/magnetic/kw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/magnetic/nb.svg b/public/pieces/magnetic/nb.svg new file mode 100644 index 0000000..23eb323 --- /dev/null +++ b/public/pieces/magnetic/nb.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/pieces/magnetic/nw.svg b/public/pieces/magnetic/nw.svg new file mode 100644 index 0000000..cdbcf18 --- /dev/null +++ b/public/pieces/magnetic/nw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/magnetic/pb.svg b/public/pieces/magnetic/pb.svg new file mode 100644 index 0000000..769c0dd --- /dev/null +++ b/public/pieces/magnetic/pb.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/pieces/magnetic/pw.svg b/public/pieces/magnetic/pw.svg new file mode 100644 index 0000000..d8b6dab --- /dev/null +++ b/public/pieces/magnetic/pw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/magnetic/qb.svg b/public/pieces/magnetic/qb.svg new file mode 100644 index 0000000..ff6a9df --- /dev/null +++ b/public/pieces/magnetic/qb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/magnetic/qw.svg b/public/pieces/magnetic/qw.svg new file mode 100644 index 0000000..49ff59c --- /dev/null +++ b/public/pieces/magnetic/qw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/magnetic/rb.svg b/public/pieces/magnetic/rb.svg new file mode 100644 index 0000000..ee46d67 --- /dev/null +++ b/public/pieces/magnetic/rb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/magnetic/rw.svg b/public/pieces/magnetic/rw.svg new file mode 100644 index 0000000..6d302a1 --- /dev/null +++ b/public/pieces/magnetic/rw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/bb.svg b/public/pieces/maya/bb.svg new file mode 100644 index 0000000..beb159e --- /dev/null +++ b/public/pieces/maya/bb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/bw.svg b/public/pieces/maya/bw.svg new file mode 100644 index 0000000..8ca4d04 --- /dev/null +++ b/public/pieces/maya/bw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/kb.svg b/public/pieces/maya/kb.svg new file mode 100644 index 0000000..43dd58f --- /dev/null +++ b/public/pieces/maya/kb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/kw.svg b/public/pieces/maya/kw.svg new file mode 100644 index 0000000..743d90b --- /dev/null +++ b/public/pieces/maya/kw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/nb.svg b/public/pieces/maya/nb.svg new file mode 100644 index 0000000..05df82a --- /dev/null +++ b/public/pieces/maya/nb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/nw.svg b/public/pieces/maya/nw.svg new file mode 100644 index 0000000..124f21f --- /dev/null +++ b/public/pieces/maya/nw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/pb.svg b/public/pieces/maya/pb.svg new file mode 100644 index 0000000..a3494c3 --- /dev/null +++ b/public/pieces/maya/pb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/pw.svg b/public/pieces/maya/pw.svg new file mode 100644 index 0000000..e79a5da --- /dev/null +++ b/public/pieces/maya/pw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/qb.svg b/public/pieces/maya/qb.svg new file mode 100644 index 0000000..db0bd9e --- /dev/null +++ b/public/pieces/maya/qb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/qw.svg b/public/pieces/maya/qw.svg new file mode 100644 index 0000000..9e39627 --- /dev/null +++ b/public/pieces/maya/qw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/rb.svg b/public/pieces/maya/rb.svg new file mode 100644 index 0000000..26da3e2 --- /dev/null +++ b/public/pieces/maya/rb.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/maya/rw.svg b/public/pieces/maya/rw.svg new file mode 100644 index 0000000..1099432 --- /dev/null +++ b/public/pieces/maya/rw.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/pieces/simple/bw.svg b/public/pieces/simple/bw.svg index 72fc763..3b6d2c3 100644 --- a/public/pieces/simple/bw.svg +++ b/public/pieces/simple/bw.svg @@ -1,4 +1,4 @@ - + diff --git a/public/pieces/simple/kb.svg b/public/pieces/simple/kb.svg index 9faa9a5..3fc3028 100644 --- a/public/pieces/simple/kb.svg +++ b/public/pieces/simple/kb.svg @@ -1,3 +1,3 @@ - + diff --git a/public/pieces/simple/kw.svg b/public/pieces/simple/kw.svg index 0585815..bfd6e80 100644 --- a/public/pieces/simple/kw.svg +++ b/public/pieces/simple/kw.svg @@ -1,4 +1,4 @@ - + diff --git a/public/pieces/simple/nb.svg b/public/pieces/simple/nb.svg index f89797d..24fd3c0 100644 --- a/public/pieces/simple/nb.svg +++ b/public/pieces/simple/nb.svg @@ -1,3 +1,3 @@ - + diff --git a/public/pieces/simple/nw.svg b/public/pieces/simple/nw.svg index 590b9ab..6a8fcc5 100644 --- a/public/pieces/simple/nw.svg +++ b/public/pieces/simple/nw.svg @@ -1,4 +1,4 @@ - - + + diff --git a/public/pieces/simple/pb.svg b/public/pieces/simple/pb.svg index 3726e8d..4bbd3a0 100644 --- a/public/pieces/simple/pb.svg +++ b/public/pieces/simple/pb.svg @@ -1,3 +1,3 @@ - + diff --git a/public/pieces/simple/pw.svg b/public/pieces/simple/pw.svg index 8854bb0..da59d9a 100644 --- a/public/pieces/simple/pw.svg +++ b/public/pieces/simple/pw.svg @@ -1,4 +1,4 @@ - + diff --git a/public/pieces/simple/qw.svg b/public/pieces/simple/qw.svg index c1c9977..a31e04e 100644 --- a/public/pieces/simple/qw.svg +++ b/public/pieces/simple/qw.svg @@ -1,4 +1,4 @@ - + diff --git a/src/board/styles-board/colorful/avocado.ts b/src/board/styles-board/colorful/avocado.ts index 83c8080..11514e3 100644 --- a/src/board/styles-board/colorful/avocado.ts +++ b/src/board/styles-board/colorful/avocado.ts @@ -12,7 +12,7 @@ const style: Style = { dark: { type: "solid", data: { - color: "#72b339", + color: "#72a843", }, }, light: { diff --git a/src/board/styles-board/gradient/calm.ts b/src/board/styles-board/gradient/calm.ts index 490f3d8..20ee423 100644 --- a/src/board/styles-board/gradient/calm.ts +++ b/src/board/styles-board/gradient/calm.ts @@ -24,7 +24,7 @@ const style: Style = { }, moveIndicator: { type: "color", - data: "#ee59ff55", + data: "#0055ff33", }, border: { type: "gradient", diff --git a/src/board/styles-board/index.ts b/src/board/styles-board/index.ts index c3c6ac8..53e10e5 100644 --- a/src/board/styles-board/index.ts +++ b/src/board/styles-board/index.ts @@ -1,11 +1,15 @@ +import standard from "./mono/standard"; import chesscom from "./mono/chesscom"; import lichess from "./mono/lichess"; +import leko from "./mono/leko"; +import patina from "./mono/patina"; import lila from "./mono/lila"; import peach from "./mono/peach"; -import standard from "./mono/standard"; import violet from "./mono/violet"; import danya from "./mono/danya"; import botez from "./mono/botez"; +import mud from "./mono/mud"; +import rose from "./mono/rose"; import avocado from "./colorful/avocado"; @@ -21,6 +25,9 @@ import wood4 from "./pic/wood4"; const styles = { standard, lila, + leko, + patina, + mud, peach, violet, chesscom, @@ -28,6 +35,7 @@ const styles = { danya, botez, avocado, + rose, calm, laguna, sunset, diff --git a/src/board/styles-board/mono/leko.ts b/src/board/styles-board/mono/leko.ts new file mode 100644 index 0000000..9fe6fad --- /dev/null +++ b/src/board/styles-board/mono/leko.ts @@ -0,0 +1,41 @@ +import { Style } from "../../../types"; + +const style: Style = { + name: "Leko", + category: "mono", + background: { + type: "solid", + data: { + color: "transparent", + }, + }, + dark: { + type: "solid", + data: { + color: "#919caf", + }, + }, + light: { + type: "solid", + data: { + color: "#c0c2d0", + }, + }, + moveIndicator: { + type: "hueShift", + data: -90, + }, + border: { + type: "solid", + data: { + color: "#58606e", + }, + }, + coords: { + onLight: "#58606e", + onDark: "#dbe8ff", + onBorder: "#dbe8ff", + }, +}; + +export default style; diff --git a/src/board/styles-board/mono/mud.ts b/src/board/styles-board/mono/mud.ts new file mode 100644 index 0000000..db2e499 --- /dev/null +++ b/src/board/styles-board/mono/mud.ts @@ -0,0 +1,41 @@ +import { Style } from "../../../types"; + +const style: Style = { + name: "Beige", + category: "mono", + background: { + type: "solid", + data: { + color: "transparent", + }, + }, + dark: { + type: "solid", + data: { + color: "#b0a392", + }, + }, + light: { + type: "solid", + data: { + color: "#cfc8be", + }, + }, + moveIndicator: { + type: "hueShift", + data: 60, + }, + border: { + type: "solid", + data: { + color: "#6e6559", + }, + }, + coords: { + onLight: "#6e6559", + onDark: "#f5eee5", + onBorder: "#f5eee5", + }, +}; + +export default style; diff --git a/src/board/styles-board/mono/patina.ts b/src/board/styles-board/mono/patina.ts new file mode 100644 index 0000000..d550c74 --- /dev/null +++ b/src/board/styles-board/mono/patina.ts @@ -0,0 +1,41 @@ +import { Style } from "../../../types"; + +const style: Style = { + name: "Beige", + category: "mono", + background: { + type: "solid", + data: { + color: "transparent", + }, + }, + dark: { + type: "solid", + data: { + color: "#93b092", + }, + }, + light: { + type: "solid", + data: { + color: "#becfc2", + }, + }, + moveIndicator: { + type: "hueShift", + data: 90, + }, + border: { + type: "solid", + data: { + color: "#596e59", + }, + }, + coords: { + onLight: "#596e59", + onDark: "#e4f5e4", + onBorder: "#e4f5e4", + }, +}; + +export default style; diff --git a/src/board/styles-board/mono/rose.ts b/src/board/styles-board/mono/rose.ts new file mode 100644 index 0000000..1f05f1d --- /dev/null +++ b/src/board/styles-board/mono/rose.ts @@ -0,0 +1,41 @@ +import { Style } from "../../../types"; + +const style: Style = { + name: "Rose", + category: "mono", + background: { + type: "solid", + data: { + color: "transparent", + }, + }, + dark: { + type: "solid", + data: { + color: "#f04a73", + }, + }, + light: { + type: "solid", + data: { + color: "#ffb8c9", + }, + }, + moveIndicator: { + type: "hueShift", + data: -30, + }, + border: { + type: "solid", + data: { + color: "#a62444", + }, + }, + coords: { + onLight: "#f04a73", + onDark: "#ffb8c9", + onBorder: "#ffb8c9", + }, +}; + +export default style; diff --git a/src/board/styles-pieces/color.ts b/src/board/styles-pieces/color.ts deleted file mode 100755 index 3f5d390..0000000 --- a/src/board/styles-pieces/color.ts +++ /dev/null @@ -1,16 +0,0 @@ -const color = { - kw: "/pieces/color/kw.svg", - qw: "/pieces/color/qw.svg", - rw: "/pieces/color/rw.svg", - bw: "/pieces/color/bw.svg", - nw: "/pieces/color/nw.svg", - pw: "/pieces/color/pw.svg", - kb: "/pieces/color/kb.svg", - qb: "/pieces/color/qb.svg", - rb: "/pieces/color/rb.svg", - bb: "/pieces/color/bb.svg", - nb: "/pieces/color/nb.svg", - pb: "/pieces/color/pb.svg", -}; - -export default color; diff --git a/src/board/styles-pieces/index.ts b/src/board/styles-pieces/index.ts index cf3bea5..9a6a599 100755 --- a/src/board/styles-pieces/index.ts +++ b/src/board/styles-pieces/index.ts @@ -2,13 +2,14 @@ import alpha from "./alpha"; import cardinal from "./cardinal"; import cases from "./cases"; import cburnett from "./cburnett"; -import color from "./color"; import companion from "./companion"; import fantasy from "./fantasy"; import gioco from "./gioco"; import governor from "./governor"; import horsey from "./horsey"; import maestro from "./maestro"; +import magnetic from "./magnetic"; +import maya from "./maya"; import merida from "./merida"; import simple from "./simple"; import staunty from "./staunty"; @@ -19,13 +20,14 @@ const piecesSets = { cardinal, cases, cburnett, - color, companion, fantasy, gioco, governor, horsey, maestro, + magnetic, + maya, merida, simple, staunty, diff --git a/src/board/styles-pieces/magnetic.ts b/src/board/styles-pieces/magnetic.ts new file mode 100755 index 0000000..ec65faa --- /dev/null +++ b/src/board/styles-pieces/magnetic.ts @@ -0,0 +1,16 @@ +const magnetic = { + kw: "/pieces/magnetic/kw.svg", + qw: "/pieces/magnetic/qw.svg", + rw: "/pieces/magnetic/rw.svg", + bw: "/pieces/magnetic/bw.svg", + nw: "/pieces/magnetic/nw.svg", + pw: "/pieces/magnetic/pw.svg", + kb: "/pieces/magnetic/kb.svg", + qb: "/pieces/magnetic/qb.svg", + rb: "/pieces/magnetic/rb.svg", + bb: "/pieces/magnetic/bb.svg", + nb: "/pieces/magnetic/nb.svg", + pb: "/pieces/magnetic/pb.svg", +}; + +export default magnetic; diff --git a/src/board/styles-pieces/maya.ts b/src/board/styles-pieces/maya.ts new file mode 100755 index 0000000..678724c --- /dev/null +++ b/src/board/styles-pieces/maya.ts @@ -0,0 +1,16 @@ +const maya = { + kw: "/pieces/maya/kw.svg", + qw: "/pieces/maya/qw.svg", + rw: "/pieces/maya/rw.svg", + bw: "/pieces/maya/bw.svg", + nw: "/pieces/maya/nw.svg", + pw: "/pieces/maya/pw.svg", + kb: "/pieces/maya/kb.svg", + qb: "/pieces/maya/qb.svg", + rb: "/pieces/maya/rb.svg", + bb: "/pieces/maya/bb.svg", + nb: "/pieces/maya/nb.svg", + pb: "/pieces/maya/pb.svg", +}; + +export default maya; diff --git a/src/encoders/createAnimation.ts b/src/encoders/createAnimation.ts index 1972654..e66dc2e 100644 --- a/src/encoders/createAnimation.ts +++ b/src/encoders/createAnimation.ts @@ -44,8 +44,16 @@ const createAnimation = async ( const position = game.getPosition(ply); await board.frame(position, header); board.render(); + + const frames = + position.end === 0 + ? 5 + : position.ply === 0 && !includeTitleScreen + ? 2 + : 1; + // @ts-ignore - await encoder.add(getData(board, encoder), position.end === 0 ? 5 : 1); + await encoder.add(getData(board, encoder), frames); } return await encoder.render(); diff --git a/src/ui/components/Info.css b/src/ui/components/Info.css index e6eb62d..b8ea50e 100644 --- a/src/ui/components/Info.css +++ b/src/ui/components/Info.css @@ -6,7 +6,7 @@ .info { background: var(--color-bg-block); padding: 30px 20px; - font-size: 1.5rem; + font-size: 1.4rem; text-align: left; }