Particle2D Type
A single 2D particle rendered as a textured quad with optional sprite-sheet source rect.
This is a render snapshot. Simulation state (velocity, lifetime, spin, color rules) lives in the user's model and is written into this struct at the start of the view function.
Record fields
| Record Field |
Description
|
Tint color. Alpha controls transparency.
|
|
Center position in world/screen space.
|
|
Full Usage:
Rotation
Field type: float32
|
Rotation in degrees around the center.
|
Width and height of the quad.
|
|
|
Source rectangle within the texture in pixels. Use (0, 0, tw, th) for the full texture.
|
Mibo.Raylib