feat(editor): add --gen-texture-pinwheel sector mandala

76th procedural texture: N alternating colored triangular
wedges radiating from the texture center, each subtending
2π/N radians. Each pixel computes its angle via atan2 and
maps to a sector index; even sectors get color A, odd get
color B.

Distinct from --gen-texture-starburst (thin rays with bg
between them) and --gen-texture-swirl (curved spiral arms)
— pinwheel uses solid-fill alternating wedges with no bg.

Useful for ceiling-decoration medallions, sun-mandala
designs, magical-wheel symbols, wind-rose floor inlays,
heraldic radial backgrounds, druid-circle ground markings.

Default 8 sectors gives the classic pinwheel look; bump
to 12-16 for finer subdivisions, or drop to 2-4 for bold
quadrant patterns.
This commit is contained in:
Kelsi 2026-05-09 13:41:40 -07:00
parent 2e973c0f00
commit c9892f29d0
3 changed files with 60 additions and 1 deletions

View file

@ -112,7 +112,7 @@ const char* const kArgRequired[] = {
"--gen-texture-dunes", "--gen-texture-swirl",
"--gen-texture-ironbark", "--gen-texture-mold",
"--gen-texture-embroidery", "--gen-texture-lightbeam",
"--gen-texture-dewdrops",
"--gen-texture-dewdrops", "--gen-texture-pinwheel",
"--validate-glb", "--info-glb", "--info-glb-tree", "--info-glb-bytes",
"--validate-jsondbc", "--check-glb-bounds", "--validate-stl",
"--validate-png", "--validate-blp",