Function

spatialSmoothFeatheringEffect

Defines a spatialSmoothFeatheringEffect based on the percent width and height of the layout.

spatialSmoothFeatheringEffect

Source set: Android
public fun spatialSmoothFeatheringEffect(
    @IntRange(from = 0, to = 50) horizontalPercent: Int,
    @IntRange(from = 0, to = 50) verticalPercent: Int,
): SpatialFeatheringEffect

Defines a 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.

spatialSmoothFeatheringEffect

Source set: Android
public fun spatialSmoothFeatheringEffect(horizontal: Dp, vertical: Dp): SpatialFeatheringEffect

Defines a spatialSmoothFeatheringEffect using Dp.

Parameters

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

spatialSmoothFeatheringEffect

Source set: Android
public fun spatialSmoothFeatheringEffect(
    horizontal: Float,
    vertical: Float,
): SpatialFeatheringEffect

Defines a 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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: