tilemap_render — GFX2D tile op

• Data kinds: sprites → rgba

• Call: import fullseye as fs; fs.ledger.tilemap_render(tiles, indices, empty=-1) (implementation को सीधे call करना हो तो import gfx2d; gfx2d.tilemap_render(tiles, indices, empty=-1), registry से लेना हो तो opsgfx2d.get("tilemap_render"))

उपयोग

tile index के grid को एक rgba image में paint करता है।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

tiles is a list of equally sized rgba tiles (what sprite_sheet_slice returns) or an (N, th, tw, 4) array. indices is a 2-D integer array; a cell equal to empty is left transparent. The result is (rows*th, cols*tw, 4).

Every cell is a copy, not a resample, so the output equals the tile exactly.

Raises ValueError: a float index array (a float "index" is a rounding waiting to happen), an index outside the tile set, tiles of differing shapes, an output past MAX_PIXELS.

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• gfx2d_scene — py -3.11 examples/gfx2d_scene.py

वे अगले ops जिनसे type जुड़ता है (rgba को input के रूप में लेते हैं)

premultiply · alpha_composite · sprite_blit · sprite_transform · sprite_sheet_slice · nine_slice

इसी category के (tile)

parallax_layers


*Provenance: gfx2d.py — GFX2D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.