Game development
GIMP GIH pipe cell selection
Trace brush-cell choices from a GIH header and explicit callback samples.
Your inputs
Start with an exampleYour result
Example resultHow it works
Start with fresh zero indices. At each callback apply each dimension’s current GIMP selection rule, clamp its index, combine the row-major strides and clamp to the declared physical brush count. Incremental dimensions advance together before packing.
Two incremental ranks 2 and 3 use strides 3 and 1. Six callbacks choose cells 4,2,3,1,5,0. They do not iterate through the six cells in numerical order.
Limits
Canonical current-GIMP second header line only, under 1024 ASCII bytes. Parameter headers require dim before explicit rankN/selN for all 1–4 active dimensions; ranks up to 100000 and product up to 1 million. No-parameter fallback is one incremental dimension. Up to 10000 callbacks and a 5 million-byte report. Use normalized pressure/direction/velocity 0–1 and tilts −1–1. Random selection, full GIH/GBR decoding, pixel preview, device normalization and callback timing are outside scope. Hint integers are limited to signed 32-bit positive values.