refactor(chess.com): update generate script (#625)
* refactor(chess.com): update generate script * fix(chess.com): use identifier instead of name for generate script * chore(chess.com): update assets * ci(typos): remove python ignores
This commit is contained in:
1 parent
43fffb3f70
commit
c4a66ca874
9 files changed
+441
-595
No files matched your search
@@ -0,0 +1,28 @@
|
||||
from catppuccin import PALETTE
|
||||
from boardinator.boardinator import replace_colors
|
||||
|
||||
|
||||
def generate_boards():
|
||||
for flavor in PALETTE:
|
||||
for color in flavor.colors:
|
||||
if not color.accent:
|
||||
continue
|
||||
color_dict = {
|
||||
# Light grayish yellow green
|
||||
(237, 238, 209): (
|
||||
flavor.colors.base.rgb.r,
|
||||
flavor.colors.base.rgb.g,
|
||||
flavor.colors.base.rgb.b,
|
||||
),
|
||||
# Dark grayish yellow green
|
||||
(119, 153, 82): (
|
||||
color.rgb.r,
|
||||
color.rgb.g,
|
||||
color.rgb.b,
|
||||
),
|
||||
}
|
||||
replace_colors(
|
||||
image_path="../../assets/base/colorboard.png",
|
||||
output_path=f"../../assets/{flavor.identifier}/{color.identifier}.png",
|
||||
color_dict=color_dict,
|
||||
)
|
||||
Reference in new issue
Block a user