<h2 id="alpha">alpha</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public fun SubspaceModifier.alpha(
    @FloatRange(from = 0.0, to = 1.0) alpha: Float
): SubspaceModifier
```

Sets the opacity of this element (and its children) to a value between [0..1]. An alpha value of
0.0f means fully transparent while a value of 1.0f is completely opaque. Elements with
semi-transparent alpha values (> 0.0 but < 1.0f) will be rendered using alpha-blending.

#### Parameters

| | |
| --- | --- |
| alpha | the opacity of this element (and its children). Must be a value between 0 and 1, inclusive. Values < 0 or > 1 will be clamped. |