public interface ShadowScope : Density
Scope that can be used to define properties to render either a drop shadow or inner shadow. This includes the radius, spread, color, brush, alpha, blendMode, and offset parameters.
Properties
radius
public var radius: Float
Blur radius of the shadow, in pixels. Defaults to 0.
spread
public var spread: Float
Spread parameter that adds to the size of the shadow, in pixels. Defaults to 0.
color
public var color: Color
Color of the shadow, Defaults to Color.Black. Attempts to provide Color.Unspecified will fallback to rendering with Color.Black. This parameter is consumed if brush is null.
brush
public var brush: Brush?
The brush to use for the shadow. If null, the color parameter is consumed instead
alpha
public var alpha: Float
Opacity of the shadow. Defaults to 1f indicating a fully opaque shadow
blendMode
public var blendMode: BlendMode
Blending algorithm used by the shadow. Defaults to BlendMode.SrcOver
offset
public var offset: Offset
Offset of the shadow. Defaults to Offset.Zero.