Sets an object used for painting the diagram background.
Namespace: MindFusion.Diagramming
Package: Diagram.js
JavaScript Copy Code |
---|
function setBackBrush (value) |
The object used for painting the background.
This property enables more spectacular background painting with effects such as gradients, textures and color patterns.
The following example demonstrates how a gradient brush is created and how a solid brush is created - from a string that identifies a predefined color or from a RGB value.
JavaScript |
---|
//create gradient brush //create blue solid brush //create gray solid brush |