<!--
{
  "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/init(red:green:blue:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCColor(im)initWithRed:green:blue:"
  },
  "title" : "init(red:green:blue:)"
}
-->

# init(red:green:blue:)

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

```
init(red: Float, green: Float, blue: Float)
```

## Parameters

`red`

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

`green`

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

`blue`

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

## Discussion

---

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)