BrushPaint.ColorFunction


public abstract class BrushPaint.ColorFunction

Known direct subclasses
BrushPaint.ColorFunction.OpacityMultiplier

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

BrushPaint.ColorFunction.ReplaceColor

A ColorFunction that ignores the input color and replaces it with the specified color.


A ColorFunction defines a mapping over colors.

Summary

Nested types

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

A ColorFunction that ignores the input color and replaces it with the specified color.

Public methods

final @ColorInt int
transformColorIntArgb(@ColorInt int colorIntArgb)

Transforms the input color into a new color.

Public methods

transformColorIntArgb

Added in 1.1.0-alpha03
public final @ColorInt int transformColorIntArgb(@ColorInt int colorIntArgb)

Transforms the input color into a new color.