Contents

color

The initial color and alpha (transparency) of the particle.

Declaration

var color: SIMD4<Float> { get set }

Discussion

Uses RGBA format where each component ranges from 0.0 to 1.0:

  • x (red): Red color component

  • y (green): Green color component

  • z (blue): Blue color component

  • w (alpha): Transparency (0.0 = fully transparent, 1.0 = fully opaque)