<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/ElementSpawnParameters/color",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph22ElementSpawnParametersV5colors5SIMD4VySfGvp"
  },
  "title" : "color"
}
-->

# color

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

```
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)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)