<!--
{
  "documentType" : "article",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/color-attribute-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Color Attribute Keys"
}
-->

# Color Attribute Keys

Color types.

## Topics

### Constants

[`let kCIAttributeTypeOpaqueColor: String`](/documentation/CoreImage/kCIAttributeTypeOpaqueColor)

A Core Image color ([`CIColor`](/documentation/CoreImage/CIColor) object) that specifies red, green, and blue component values. Use this key for colors with no alpha component. If the key is not present, Core Image assumes color with alpha.

[`let kCIAttributeTypeGradient: String`](/documentation/CoreImage/kCIAttributeTypeGradient)

An n-by-1 gradient image used to describe a color ramp.

[`let kCIAttributeTypeColor: String`](/documentation/CoreImage/kCIAttributeTypeColor)

A Core Image color ([`CIColor`](/documentation/CoreImage/CIColor) object) that specifies red, green, and blue component values.



---

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)