On this page
canvas.Shadow
import "fyne.io/fyne/v2/canvas"
Usage
type Shadow
type Shadow struct {
Color color.Color // Color of the shadow.
BlurRadius float32 // A value of 0 produces no blur, while larger values produce bigger and lighter shadow.
Spread float32 // Spread of the shadow (how far out to draw before fading - negative values make it smaller).
Offset fyne.Position // Offset of the shadow relative to the content. Positive values move the shadow to the right (x) and down (y) of the element.
Variant ShadowVariant // Variation of shadow (DropShadow or BoxShadow).
}
Shadow provides base functionality for objects that can have a Shadow. Intended to be embedded in other structs to add Shadow support.
Since:
2.8