---
title: "init(color:strength:opacityFunction:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/hovereffectcomponent/highlighthovereffectstyle/init(color:strength:opacityfunction:)"
---

# init(color:strength:opacityFunction:)

Creates a new highlight effect with a color and strength.

## Declaration

```swift
init(color: NSColor? = nil, strength: Float = 1.0, opacityFunction: HoverEffectComponent.OpacityFunction)
```
