<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CILinearGradient",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(pl)CILinearGradient"
  },
  "title" : "CILinearGradient"
}
-->

# CILinearGradient

The properties you use to configure a linear gradient filter.

```
protocol CILinearGradient : CIFilterProtocol
```

## Topics

### Instance Properties

[`color0`](/documentation/CoreImage/CILinearGradient/color0)

The first color to use in the gradient.

[`color1`](/documentation/CoreImage/CILinearGradient/color1)

The second color to use in the gradient.

[`point0`](/documentation/CoreImage/CILinearGradient/point0)

The starting position of the gradient.

[`point1`](/documentation/CoreImage/CILinearGradient/point1)

The ending position of the gradient.

## See Also

[`linearGradient()`](/documentation/CoreImage/CIFilter-swift.class/linearGradient())

Generates a color gradient that varies along a linear axis between two defined endpoints.



---

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)