MindFusion.Diagramming for .NET MAUI defines a set of classes which are used to define colors and patterns used to stroke and fill geometric shapes. These classes are located in the MindFusion.Drawing namespace. There Brush-derived classes are used to define colored fills for objects. The simplest brush, SolidBrush, fills the interior of an object with a solid color. There are also hatch and gradient brushes represented by the HatchBrush, LinearGradientBrush, and PathGradientBrush classes respectively. The Pen class defines the attributes of strokes, for example, color and thickness.
Instances of those classes can be assigned to various diagram properties, including to the Pen and Brush properties of the diagram items.