<!--
{
  "availability" : [
    "FxPlug: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxParameterCreationAPI_v5/addColorParameter(withName:parameterID:defaultRed:defaultGreen:defaultBlue:defaultAlpha:parameterFlags:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxParameterCreationAPI_v5(im)addColorParameterWithName:parameterID:defaultRed:defaultGreen:defaultBlue:defaultAlpha:parameterFlags:"
  },
  "title" : "addColorParameter(withName:parameterID:defaultRed:defaultGreen:defaultBlue:defaultAlpha:parameterFlags:)"
}
-->

# addColorParameter(withName:parameterID:defaultRed:defaultGreen:defaultBlue:defaultAlpha:parameterFlags:)

Creates an RGBA color value and adds it to the plug-in’s parameter list.

```
func addColorParameter(withName name: String, parameterID: UInt32, defaultRed red: Double, defaultGreen green: Double, defaultBlue blue: Double, defaultAlpha alpha: Double, parameterFlags flags: FxParameterFlags) -> Bool
```

## Parameters

`name`

The name of the parameter in the user interface.

`parameterID`

The unique identifier for a parameter. Used to retrieve, set, or validate the parameter.

`red`

The initial red value of the parameter in float (0.0 - 1.0) space.

`green`

The initial green value of the parameter in float (0.0 - 1.0) space.

`blue`

The initial blue value of the parameter in float (0.0 - 1.0) space.

`alpha`

The initial alpha value of the parameter in float (0.0 - 1.0) space.

`flags`

The flags that encode various state values for the parameter.

## Return Value

Returns `YES` if the application successfully creates an RGBA color parameter; otherwise `NO`.

## Discussion

The parameter assumes the default color values are in the sRGB color space.

---

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)