particle op• データ種: なし → table(引数だけで決まる op —— 画像やデータの入力を取らない)
• 呼び出し: import gfx2d; gfx2d.particle_emit(count, seed, origin=(0.0, 0.0), spread=0.0, speed=(10.0, 40.0), direction=(0.0, 360.0), life=(0.5, 1.5), size=(1.0, 3.0), color='emphasis', scheme='okabe_ito') (または opsgfx2d.get("particle_emit"))
`origin から count 個の粒子を放出する。seed` から決定的に。
> 以下の詳細説明は原文のままです —— 要約と見出しは訳出済み。
Returns the particle state as a dict of arrays::
{"pos": (N,2) as (x, y), "vel": (N,2) px/s, "age": (N,), "life": (N,),
"size": (N,) radius in px, "color": (N,4) straight rgba}
Ranges are `(low, high) pairs sampled uniformly; direction` is in
degrees measured clockwise from the +x axis (again because the row axis
points down). `spread` is the radius of the uniform disc the start
positions are jittered over.
All randomness comes from `numpy.random.default_rng(seed)` — the same seed
gives the same bytes, which the test suite pins with a SHA-256.
• サンプルデータ カタログ(DL URL / ライセンス) — 2-D は skimage.data(BSD/public)+ 合成、3-D は実データ源(Stanford/PDS 等)の DL URL。
• 演算子の来歴・参考文献 — この op 族の元になった研究/手法の出典。
• アルゴリズムの正典(著者・年)と用途は上記ファミリ使い方ガイドに記載。
• gfx2d_scene — py -3.11 examples/gfx2d_scene.py
table を入力に取れる)layer_stack · particle_step · particle_render
particle)particle_step · particle_render
*Provenance: gfx2d.py — GFX2D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.