HelpersKt

Added in 1.3.0-alpha06

public final class HelpersKt


Summary

Public methods

static final @NonNull LayoutColor
withOpacity(
    @NonNull LayoutColor receiver,
    @FloatRange(from = 0.0, to = 1.0) float ratio
)

Changes the opacity/transparency of the given color.

Public methods

public static final @NonNull LayoutColor withOpacity(
    @NonNull LayoutColor receiver,
    @FloatRange(from = 0.0, to = 1.0) float ratio
)

Changes the opacity/transparency of the given color.

Note that this only looks at the static value of the LayoutColor, any dynamic value will be ignored.