<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCColor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCColor"
  },
  "title" : "GCColor"
}
-->

# GCColor

The color of a device light.

```
class GCColor
```

## Topics

### Creating colors

[`init(red:green:blue:)`](/documentation/GameController/GCColor/init(red:green:blue:))

Creates a color with the specified red, green, and blue values.

### Setting color values

[`red`](/documentation/GameController/GCColor/red)

The normalized value of the red component ranging from 0 to 1.

[`green`](/documentation/GameController/GCColor/green)

The normalized value of the green component ranging from 0 to 1.

[`blue`](/documentation/GameController/GCColor/blue)

The normalized value of the blue component ranging from 0 to 1.



---

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)