Type Shadow
type Shadow struct {
Bounds Rect
Radius float32
Color Color
Style ShadowStyle
Layer uint16
ClipOf Rect
HasClip bool
// RectsBefore and TrianglesBefore are how many of the canvas's rectangles and
// triangles were painted before this shadow. Shadows, rectangles and triangles
// live in separate lists; these two counts interleave them back into paint
// order, as Triangle.RectsBefore does for triangles. Neither decreases along
// Shadows().
RectsBefore uint32
TrianglesBefore uint32
}Shadow is one soft shadow primitive: the shadow that the rounded rectangle Bounds and Radius casts, placed and blurred by Style and painted in Color. The casting rectangle is cut out of the shadow, so a translucent surface drawn over it is not darkened. ClipOf/HasClip capture the active clip like Rectangle's.