<h2 id="spatialsmoothfeatheringeffect">spatialSmoothFeatheringEffect</h2>

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

```kotlin
public fun spatialSmoothFeatheringEffect(
    @IntRange(from = 0, to = 50) horizontalPercent: Int,
    @IntRange(from = 0, to = 50) verticalPercent: Int,
): SpatialFeatheringEffect
```

Defines a [spatialSmoothFeatheringEffect](/jetpack-compose/androidx.xr.compose/compose/functions/spatialSmoothFeatheringEffect) based on the percent width and height of the layout.

#### Parameters

| | |
| --- | --- |
| horizontalPercent | Value to feather horizontal edges. A value of 5 represents 5% of the width of the visible canvas. Accepted value range is 0 - 50 percent. |
| verticalPercent | Value to feather vertical edges. A value of 5 represents 5% of the height the visible canvas. Accepted value range is 0 - 50 percent. |

<hr class="docs-overload-divider">

<h2 id="spatialsmoothfeatheringeffect-horizontal-vertical">spatialSmoothFeatheringEffect</h2>

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

```kotlin
public fun spatialSmoothFeatheringEffect(horizontal: Dp, vertical: Dp): SpatialFeatheringEffect
```

Defines a [spatialSmoothFeatheringEffect](/jetpack-compose/androidx.xr.compose/compose/functions/spatialSmoothFeatheringEffect) using [Dp](/jetpack-compose/androidx.compose.ui/ui-unit/classes/Dp).

#### Parameters

| | |
| --- | --- |
| horizontal | Non-negative [Dp](/jetpack-compose/androidx.compose.ui/ui-unit/classes/Dp) value to feather horizontal edges. Value will be capped at 50% of canvas width if it is too large. |
| vertical | Non-negative [Dp](/jetpack-compose/androidx.compose.ui/ui-unit/classes/Dp) value to feather vertical edges. Value will be capped at 50% of canvas height if it is too large. |

<hr class="docs-overload-divider">

<h2 id="spatialsmoothfeatheringeffect-horizontal-vertical-2">spatialSmoothFeatheringEffect</h2>

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

```kotlin
public fun spatialSmoothFeatheringEffect(
    horizontal: Float,
    vertical: Float,
): SpatialFeatheringEffect
```

Defines a [spatialSmoothFeatheringEffect](/jetpack-compose/androidx.xr.compose/compose/functions/spatialSmoothFeatheringEffect) using pixels.

#### Parameters

| | |
| --- | --- |
| horizontal | Non-negative pixels value to feather horizontal edges. Value will be capped at 50% of canvas width if it is too large. |
| vertical | Non-negative pixels value to feather vertical edges. Value will be capped at 50% of canvas height if it is too large. |