---
title: green
framework: coreimage
role: symbol
role_heading: Instance Property
path: coreimage/cicolor/green-swift.property
---

# green

Returns the unpremultiplied green component of the color.

## Declaration

```swift
var green: CGFloat { get }
```

## Discussion

Discussion If the CIColor was initialized with a CGColor in a non-RGB CGColorSpace then it will be converted to sRGB to get the green component.

## See Also

### Getting Color Components

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