🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

AlphaScope

An interface that introduces the alpha property to a Style receiver scope.

Source set: Common
public interface AlphaScope

An interface that introduces the alpha property to a Style receiver scope.

Functions

alpha

Source set: Common
public fun alpha(@FloatRange(from = 0.0, to = 1.0) value: Float)

Sets the opacity of the component. A value of 1.0f means fully opaque, 0.0f means fully transparent.

This property is not inherited

Parameters

value The alpha value (0.0f to 1.0f).

Content updated: