---
title: components
framework: coreimage
role: symbol
role_heading: Instance Property
path: coreimage/cicolor/components
---

# components

Return a pointer to an array of CGFloat values including alpha.

## Declaration

```swift
var components: UnsafePointer<CGFloat> { get }
```

## Discussion

Discussion Typically this array will contain 4 CGFloat values for red, green, blue, and alpha. If the CIColor was initialized with a CGColor then returned pointer will be the same as calling CGColorGetComponents()

## See Also

### Getting Color Components

- [colorSpace](coreimage/cicolor/colorspace.md)
- [numberOfComponents](coreimage/cicolor/numberofcomponents.md)
- [red](coreimage/cicolor/red-swift.property.md)
- [green](coreimage/cicolor/green-swift.property.md)
- [blue](coreimage/cicolor/blue-swift.property.md)
- [alpha](coreimage/cicolor/alpha.md)
- [stringRepresentation](coreimage/cicolor/stringrepresentation.md)
