Update 'palette-gen.js'

This commit is contained in:
2023-06-17 02:42:25 +02:00
committed by soraefir
parent 1563bb0815
commit 237e0890f7
25 changed files with 43 additions and 11 deletions

22
Makefile Normal file
View File

@@ -0,0 +1,22 @@
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)
build/%.gif: img/%.gif builddir gifpalette.out
gifsicle --use-colormap gifpalette.out < $< > $@
clean:
@rm -rf palette.in palette.out buildsha256-SDBYfjcax0XxVZcDRe5kCcPUOWaserg7v+wX747TwF8=