sprite op• Datenarten: rgba → sprites
• Aufruf: import fullseye as fs; fs.ledger.sprite_sheet_slice(sheet, tile_height, tile_width, margin=0, spacing=0, count=None) (die Implementierung direkt: import gfx2d; gfx2d.sprite_sheet_slice(sheet, tile_height, tile_width, margin=0, spacing=0, count=None); aus dem Register: opsgfx2d.get("sprite_sheet_slice"))
Zerlegt einen Sprite-Atlas in eine Liste gleich großer rgba-Bilder, zeilenweise.
> Die ausführliche Beschreibung unten ist der Originaltext — Zusammenfassung und Überschriften sind übersetzt.
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.
• Katalog der Beispieldaten (Download-URLs / Lizenzen) — 2-D nutzt skimage.data (BSD/Public Domain) plus synthetische Bilder, 3-D nennt Download-URLs echter Datenquellen (Stanford, PDS, …).
• Herkunft und Literatur der Operatoren — die Quellen der Forschung/Verfahren, auf denen diese Operatorfamilie beruht.
• Der kanonische Algorithmus (Autor, Jahr) und seine Anwendungen stehen im Familienleitfaden oben.
• gfx2d_scene — py -3.11 examples/gfx2d_scene.py
sprites als Eingabe)tilemap_render · parallax_layers
sprite)sprite_synthesize · sprite_blit · sprite_transform · nine_slice
*Provenance: gfx2d.py — GFX2D Operator-Registry. Diese Notiz wird von tools/opdocs.py md erzeugt (nicht von Hand bearbeiten).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.