---
title: "brightness(_:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/graphicscontext/filter/brightness(_:)"
---

# brightness(_:)

Returns a filter that applies a brightness adjustment.

## Declaration

```swift
static func brightness(_ amount: Double) -> GraphicsContext.Filter
```

## Parameters

- `amount`: An amount to add to the pixel’s color components.

## Return Value

Return Value A filter that applies a brightness adjustment.

## Discussion

Discussion This filter is different than brightness filter primitive defined by the Scalable Vector Graphics (SVG) specification. You can obtain an effect like that filter using a grayscale(_:) color multiply. However, this filter does match the CIColorControls filter’s brightness adjustment.

## See Also

### Changing brightness and contrast

- [contrast(_:)](swiftui/graphicscontext/filter/contrast(_:).md)
