Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Brush

struct in UI

Description

Brush defines a way to fill an arbitrary surface.

Fields

NameTypeDescription
SolidColorColor?

A brush, that fills a surface with a solid color.

LinearGradientLinearGradient?

A brush, that fills a surface with a linear gradient, which is defined by two points in local coordinates and a set of stop points. See [GradientPoint] for more info.

RadialGradientRadialGradient?

A brush, that fills a surface with a radial gradient, which is defined by a center point in local coordinates and a set of stop points. See [GradientPoint] for more info.