testsAndMisc/python_pkg/artgate/styles/pixel_icon_64.toml
Krzysztof kuhy Rudnicki f15f00f3fe Re-point paths for the ~ reorganisation (home-tidy)
Also bumps the 16 meta/requirements pins the freshness gate flagged
(anthropic 1.5.0, numpy 2.5.3, pytest-randomly 5, flake8-bugbear 26.9.9,
ruff 0.16.7, pyright 1.1.414, selenium 4.49.0, hypothesis 6.168.0, lxml
6.1.3, pipdeptree 4.2.5, the two types-* stubs) and Flutter 3.47.3 in
meta/.fvmrc. One test still expected the pre-move ~/mcp-servers path.

The pre-commit hook fed .zsh files to shfmt and shellcheck, neither of
which parses zsh (SC2148/SC1071), so no zsh file could be committed since
the hook was tightened on 2026-08-22; those now get `zsh -n` instead. The
hook's own shfmt pass also staged its reformat of 8 shell files.

CI_GREEN_SKIP because main is red on exactly the dependency-freshness
finding this commit fixes, which is the documented use of that flag.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AwtowrowDXx6ccmWVPkCaF
2026-09-11 20:50:19 +02:00

35 lines
1.4 KiB
TOML

# Pixel-art item icon at 64x64: same style as `pixel_icon`, larger canvas.
#
# WHY THIS EXISTS. The diffusion route generates at SDXL's native 1024px, so a
# 32px icon is a 32x downscale. Fine detail that survives the generator does not
# survive that reduction: a coin's struck emblem, a shield's radial pattern and
# a lantern's glass panes all mush at 32px and read clearly at 64px.
#
# CALIBRATION. `max_colors` is deliberately NOT raised from pixel_icon's 32.
# Measured over the 300 genuine 48x48 icons in ~/data/opengameart-downloads -- the
# largest real-art sample available locally above 32px:
# p50=9 p75=11 p90=13 p95=13 p99=14 max=14
# Rejection rate of that real art: cap 32 -> 0.00%, and every larger cap also
# 0.00%. Hand-made art does not spend more colours just because the canvas grew,
# so raising the cap would only admit more un-quantized generator output. The
# cap stays where the corpus puts it.
#
# min_margin scales with the canvas: 1px of 32 is 3.1%, so 2px of 64 keeps the
# same proportional breathing room rather than tightening it.
name = "pixel_icon_64"
canvas = [64, 64]
max_colors = 32
alpha_binary = true
min_margin = 2
# Same gates and same ordering as pixel_icon -- see that file for why
# ALPHA_NOT_BINARY must come first.
gates = [
"ALPHA_NOT_BINARY",
"TOO_MANY_COLORS",
"CANVAS_SIZE",
"SCALE_NOT_INVARIANT",
"SILHOUETTE_LOW_CONTRAST",
"MARGIN_TOO_SMALL",
]