Update 'palette-gen.js'

This commit is contained in:
2023-06-17 02:42:25 +02:00
committed by soraefir
parent 1563bb0815
commit ba6b87699f
25 changed files with 32 additions and 4 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
SRCDIR:= img
DSTDIR:= build
SOURCES := $(shell find ${SRCDIR} -type f -print)
FILES := $(patsubst $(SRCDIR)/%,$(DSTDIR)/%,$(SOURCES))
all: $(FILES)
palette.out: palette.in
node palette-gen.js < palette.in > palette.out
builddir:
@mkdir -p build
build/%: img/% builddir palette.out
repalette $< $@ -p $$(cat palette.out) --dither $(DITHER)
clean:
@rm -rf palette.in palette.out buildsha256-SDBYfjcax0XxVZcDRe5kCcPUOWaserg7v+wX747TwF8=