SurfaceEntity.EdgeFeatheringParams.SmoothFeather


class SurfaceEntity.EdgeFeatheringParams.SmoothFeather : SurfaceEntity.EdgeFeatheringParams


Summary

Public constructors

SmoothFeather(
    leftRight: @FloatRange(from = 0.0, to = 0.5) Float,
    topBottom: @FloatRange(from = 0.0, to = 0.5) Float
)

Public properties

Float

a Float which controls the canvas-relative radius of the edge fadeout on the left and right edges of the SurfaceEntity canvas.

Float

a Float which controls the canvas-relative radius of the edge fadeout on the top and bottom edges of the SurfaceEntity canvas.

Public constructors

SmoothFeather

Added in 1.0.0-alpha05
SmoothFeather(
    leftRight: @FloatRange(from = 0.0, to = 0.5) Float = 0.0f,
    topBottom: @FloatRange(from = 0.0, to = 0.5) Float = 0.0f
)

Public properties

leftRight

Added in 1.0.0-alpha05
val leftRightFloat

a Float which controls the canvas-relative radius of the edge fadeout on the left and right edges of the SurfaceEntity canvas.

topBottom

Added in 1.0.0-alpha05
val topBottomFloat

a Float which controls the canvas-relative radius of the edge fadeout on the top and bottom edges of the SurfaceEntity canvas.

A radius of 0.05 represents 5% of the width of the visible canvas surface. Please note that this is scaled by the aspect ratio of Quad-shaped canvases.

Applications are encouraged to use ZeroFeather or set this to 0.0 on Spherical canvases. The behavior is only defined for values between 0.0f - 0.5f. Default values are 0.0f.