---
title: "color(_:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/arview/environment-swift.struct/background-swift.struct/color(_:)-97jik"
---

# color(_:)

Use a solid color as a background.

## Declaration

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

## Parameters

- `color`: The color to use for the background.

## See Also

### Backgrounds

- [cameraFeed(exposureCompensation:)](realitykit/arview/environment-swift.struct/background-swift.struct/camerafeed(exposurecompensation:).md)
- [color(_:)](realitykit/arview/environment-swift.struct/background-swift.struct/color(_:)-5hh3f.md)
- [skybox(_:)](realitykit/arview/environment-swift.struct/background-swift.struct/skybox(_:).md)
