BrushPaint.ColorFunction.OpacityMultiplier


public final class BrushPaint.ColorFunction.OpacityMultiplier extends BrushPaint.ColorFunction


A ColorFunction that scales the color opacity by a specified multiplier.

Summary

Public constructors

OpacityMultiplier(@FloatRange(from = 0.0) float multiplier)

Constructs a color function that applies the specified opacity multiplier.

Public methods

boolean
equals(Object other)
final @FloatRange(from = 0.0) float

The opacity multiplier to apply.

int
@NonNull String

Inherited methods

From androidx.ink.brush.BrushPaint.ColorFunction
final @ColorInt int
transformColorIntArgb(@ColorInt int colorIntArgb)

Transforms the input color into a new color.

Public constructors

OpacityMultiplier

Added in 1.1.0-alpha03
public OpacityMultiplier(@FloatRange(from = 0.0) float multiplier)

Constructs a color function that applies the specified opacity multiplier.

Public methods

equals

public boolean equals(Object other)

getMultiplier

Added in 1.1.0-alpha03
public final @FloatRange(from = 0.0) float getMultiplier()

The opacity multiplier to apply.

hashCode

public int hashCode()

toString

public @NonNull String toString()