<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ARView/Environment-swift.struct/Background-swift.struct/color(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:10RealityKit6ARViewC11EnvironmentV10BackgroundV5coloryAGSo7NSColorCFZ::OverloadGroup"
  },
  "title" : "color(_:)"
}
-->

# color(_:)

Use a solid color as a background.

```
static func color(_ color: ARView.Environment.Color) -> ARView.Environment.Background
```

## Parameters

`color`

The color to use for the background.

---

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)