Claimed floors: grey castle flagstones with an inlay in the owner's colour and engraving
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
72c44ae8d0
commit
ad668ec123
35 files changed
+41
-53
No files matched your search
@@ -9,6 +9,8 @@ Usage:
|
||||
[--colors 48] [--bright 1.0] [--inset 0.0] [--flatten]
|
||||
|
||||
--pick which cells to keep, numbered row by row from 1
|
||||
--colors palette size (0: keep the colours; small coloured parts such as inlays would
|
||||
fade in a palette taken mostly by large grey areas)
|
||||
--bright factor on the colours (above 1: lighter)
|
||||
--inset cut this share off every side (a frame or edge joint the model drew around the tile)
|
||||
--flatten even out the light: no vignette towards the edges, all tiles equally bright, so
|
||||
@@ -83,7 +85,8 @@ def main():
|
||||
strip = Image.new("RGB", (a.size * len(tiles), a.size))
|
||||
for k, t in enumerate(tiles):
|
||||
strip.paste(t, (k * a.size, 0))
|
||||
strip = strip.quantize(colors=a.colors, method=Image.Quantize.MEDIANCUT, dither=Image.Dither.NONE).convert("RGB")
|
||||
if a.colors > 0:
|
||||
strip = strip.quantize(colors=a.colors, method=Image.Quantize.MEDIANCUT, dither=Image.Dither.NONE).convert("RGB")
|
||||
strip.save(f"{a.out}-{a.size}.png")
|
||||
|
||||
rnd = random.Random(7)
|
||||
|
||||
Reference in new issue
Block a user