sprite op• Data kinds: rgba → sprites
• Call: import fullseye as fs; fs.ledger.sprite_sheet_slice(sheet, tile_height, tile_width, margin=0, spacing=0, count=None) (implementation को सीधे call करना हो तो import gfx2d; gfx2d.sprite_sheet_slice(sheet, tile_height, tile_width, margin=0, spacing=0, count=None), registry से लेना हो तो opsgfx2d.get("sprite_sheet_slice"))
sprite atlas को बराबर rgba frame की सूची में काटता है, row-major क्रम में।
> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।
margin is the border around the whole sheet, spacing the gap between neighbouring cells — the two numbers that every atlas exporter writes and that every hand-rolled slicer gets wrong by one.
Returns a list of (tile_height, tile_width, 4) arrays. With margin=spacing=0 it is the exact inverse of tilemap_render.
Raises ValueError: a sheet that does not contain a whole number of cells (a partial cell means the margin/spacing are wrong, and silently dropping it hides that), a count larger than the grid, more than MAX_SPRITES cells.
• 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 में दिए गए हैं।
• gfx2d_scene — py -3.11 examples/gfx2d_scene.py
sprites को input के रूप में लेते हैं)tilemap_render · parallax_layers
sprite)sprite_synthesize · sprite_blit · sprite_transform · nine_slice
*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.