---
title: "init(red:green:blue:)"
framework: gamecontroller
role: symbol
role_heading: Initializer
path: "gamecontroller/gccolor/init(red:green:blue:)"
---

# init(red:green:blue:)

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

## Declaration

```swift
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.
