Pixellab based system
This commit is contained in:
@@ -12,6 +12,9 @@ Legend
|
||||
a accent_light b accent_base c accent_dark
|
||||
x type_light y type_base z type_dark
|
||||
w white p pupil
|
||||
fixed-color ramps (light base dark, never recolored, see generate_sprite.FIXED):
|
||||
f g h fire l m n bluefire i j k ice
|
||||
s t u electric q r v ghostfire
|
||||
P pivot T tail B back A aura ^ head_top
|
||||
|
||||
Layout sources (parts_src/<slot>/<name>.layout) assemble stamps onto a fixed canvas,
|
||||
@@ -34,7 +37,7 @@ from pathlib import Path
|
||||
|
||||
from PIL import Image
|
||||
|
||||
from generate_sprite import KEYS, MARKERS, PUPIL, EYE_WHITE
|
||||
from generate_sprite import EYE_WHITE, FIXED, KEYS, MARKERS, PUPIL
|
||||
|
||||
# PARTS_SRC / PARTS_DIR let experiments build into a separate library (e.g. proto/).
|
||||
SRC = Path(os.environ.get("PARTS_SRC", "parts_src"))
|
||||
@@ -49,6 +52,10 @@ LEGEND = {
|
||||
"P": MARKERS["pivot"], "T": MARKERS["tail"], "B": MARKERS["back"],
|
||||
"A": MARKERS["aura"], "^": MARKERS["head_top"],
|
||||
}
|
||||
# Fixed-color ramp characters, light/base/dark in order
|
||||
FIXED_CHARS = {"fire": "fgh", "bluefire": "lmn", "ice": "ijk", "electric": "stu", "ghostfire": "qrv"}
|
||||
for _ramp, _chars in FIXED_CHARS.items():
|
||||
LEGEND.update(zip(_chars, FIXED[_ramp]))
|
||||
|
||||
|
||||
class SourceError(Exception):
|
||||
|
||||
Reference in New Issue
Block a user