HelpersKt

Added in 1.3.0-alpha05

public final class HelpersKt


Summary

Public methods

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

Changes the opacity/transparency of the given color.

Public methods

public static final @NonNull ColorBuilders.ColorProp withOpacity(
    @NonNull ColorBuilders.ColorProp 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 ColorProp, any dynamic value will be ignored.