HazeColorEffect

sealed interface HazeColorEffect

Describes a color effect applied by the haze effect.

This is a sealed interface with concrete implementations for color filters and tints. Follows the Compose UI model where ColorFilter is a top-level effect.

Inheritors

Types

Link copied to clipboard
data class ColorFilter(val colorFilter: ColorFilter, val blendMode: BlendMode = DefaultBlendMode) : HazeColorEffect

A color filter effect.

Link copied to clipboard
object Companion
Link copied to clipboard
data class TintBrush(val brush: Brush, val blendMode: BlendMode = DefaultBlendMode) : HazeColorEffect

A brush-based tint effect.

Link copied to clipboard
data class TintColor(val color: Color, val blendMode: BlendMode = DefaultBlendMode) : HazeColorEffect

A color-based tint effect.

Link copied to clipboard

An unspecified color effect. When used, no effect will be applied.

Properties

Link copied to clipboard
abstract val blendMode: BlendMode

The blend mode to use when applying the effect.

Link copied to clipboard
abstract val isSpecified: Boolean

Whether this effect is specified (not Unspecified).