sprite_synthesize — GFX2D sprite op

• Data kinds: कोई नहीं → rgba (केवल arguments से तय होने वाला op — यह कोई image या data input नहीं लेता)

• Call: import fullseye as fs; fs.ledger.sprite_synthesize(kind='disc', size=32, color='emphasis', thickness=0.25, scheme='okabe_ito') (implementation को सीधे call करना हो तो import gfx2d; gfx2d.sprite_synthesize(kind='disc', size=32, color='emphasis', thickness=0.25, scheme='okabe_ito'), registry से लेना हो तो opsgfx2d.get("sprite_synthesize"))

उपयोग

deterministic anti-aliased test sprite, rgba (size, size, 4)।

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

The entry point of the sprite sort: it needs no asset on disk, and because the silhouette comes from an implicit equation the alpha channel *is* the ground-truth coverage mask — which is the whole reason this family belongs in a vision library.

kind is "disc", "ring", "box", "diamond" or "star". color is a palette role name (default) or an explicit 3/4-tuple. thickness is the ring's wall as a fraction of the radius.

Coverage is computed by 4x4 regular supersampling, so alpha takes values on the exact lattice k/16.

संदर्भ (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 के (sprite)

sprite_blit · sprite_transform · sprite_sheet_slice · 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.