ShadowScope
-
Cmn
interface ShadowScope : Density
DropShadowScope |
Scope that provides the capability to configure the properties of a drop shadow in order to support efficient transformations without recomposition |
InnerShadowScope |
Scope that provides the capability to configure the properties of an inner shadow in order to support efficient transformations without recomposition |
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.
Summary
Public properties |
||
|---|---|---|
Float |
Opacity of the shadow. |
Cmn
|
BlendMode |
Blending algorithm used by the shadow. |
Cmn
|
Brush? |
The brush to use for the shadow. |
Cmn
|
Color |
Color of the shadow, Defaults to |
Cmn
|
Offset |
Offset of the shadow. |
Cmn
|
Float |
Blur radius of the shadow, in pixels. |
Cmn
|
Float |
Spread parameter that adds to the size of the shadow, in pixels. |
Cmn
|
Inherited functions |
|||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||||||||||||||||||
Inherited properties |
|---|
Public properties
blendMode
var blendMode: BlendMode
Blending algorithm used by the shadow. Defaults to BlendMode.SrcOver
brush
var brush: Brush?
The brush to use for the shadow. If null, the color parameter is consumed instead
color
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.