Radial Brush

Visual LANSA Feature

Radial Brush

A Radial Brush is used to create a gradient color that transitions between the colors specified in the Colors (#Prim_vs.BrushColors) property.

Radial Brush has Origin, Center, and Radius coordinates.  The brush radiates from the Center along the extent of the Radius similar to Linear Brush (#Prim_VS.Linear Brush) but instead producing a circular pattern.

By having the Origin and Center coordinates the same, the brush will always appear as though directly in front of the view.  However, changing the value changes the shape and the brush appears skewed.  A simple analogy is that of looking at the beam of a torch.  A RadialBrush can be thought of as a 2D view of a 3D shape.  The Origin is the position of the torch, Center is the middle of the light as it shines on somthing, and Radius describes the width.  If there is sufficient difference between the origin and center, it is no longer possible to see the base, just a "triangular" side view of the beam of light.

The example below is a simple radial brush that changes from red at 0, to blue producing a red center and blue outer.

Define_Com Class(#Prim_Vs.RadialBrush) Name(#RadialBrush) Colors(#RadialBrushColors)

Define_Com Class(#Prim_Vs.BrushColors) Name(#RadialBrushColors)

Define_Com Class(#Prim_Vs.BrushColor) Name(#RadialBrushColor1) Color(Red) Parent(#RadialBrushColors)

Define_Com Class(#Prim_Vs.BrushColor) Name(#RadialBrushColor2) At(100) Color(Blue) Parent(#RadialBrushColors)