Manuals Menu

 

ColorBrush- Sets the brush color

 
Sets the brush color that fills your figures or surfaces. - ColorBrush(C) - ColorBrush(R,G,B) Parameters: - (int) C: Numerical or constant value containing the RGB color; - (int) R: Red component of the RGB color (0 to 255); - (int) G: Green component of the RGB color (0 to 255); - (int) B: Blue component of RGB color (0 to 255). Description: Use ColorBrush to change the brush color. The brush is the drawing tool that fills the surfaces of the graph and closed figures. Setting the brush color cancels its current setting, including screening and transparency, it forces the brush to fill the surfaces with the chosen color. If you add the Brush instruction after using the ColorBrush instruction to provide a dithering for the brush, the background component of the dithering will be constructed with the color you choose. The ColorBrush instruction has two sets of parameters. You can use it by specifying the unique parameter that indicates the color, or you can specify the RGB components separately. In the first case, it is possible to use some constants. See also the ColorBrush constant that contains the brush color. Examples: - Draw a disc with the black circle and green surface ColorBrush(ClGreen) Circle(50,50,40) - Draw a disc with a black circle and a red surface ColorBrush(#FF0000) Circle(50,50,40) - Draw a disc with the black circumference and blue surface ColorBrush(0,0,255) Circle(50,50,40) - Drawing the flag of Italy ColorBrush(ClWhite) Rectangle(30,30,90,60) ColorPen(ClGreen) ColorBrush(ClGreen) Rectangle(31,31,49,59) ColorPen(ClRed) ColorBrush(ClRed) Rectangle(70,31,89,59)