DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

Brush- Sets a brush type

Choose the type of brush you want to fill in your figures or surfaces with.

- Brush(N)

Parameters:

- (int) N: Brush identifier.

Brush identifiers:

- 0: transparent brush. All surfaces are transparent;

- 1: 100% of the surface is the color of the pen;

- 2: The surface has a 50% dithering with pen color;

- 3: The surface has a 25% dithering with the color of the pen;

- 4: The surface has 12% dithering with pen color;

- 5: The surface has a 6% dithering with the color of the pen;

- 6: The surface has a 3% dithering with the color of the pen;

- 7: 100% of the surface takes on the color of the brush.

Description:

Use Brush to change the brush type. The brush is the drawing tool that fills the surfaces of closed figures. The default setting is transparent type. It means that when you draw a closed figure, such as a circle or a square, the inside of the figure will be transparent. The lines may then overlap with the lines below. However, if you use a different brush type, the surfaces of the figures will be full and the type of dithering will depend on the brush type you choose. Brush dithering is always done with two colors: the pen color and the brush color.

The Brush instruction should be used before blocking drawing instructions that intend to use it. If you use the ColorBrush instruction before Brush, the brush type will use the chosen color as the background. If you use ColorBrush after Brush, the brush will be completely replaced by the uniform color you choose.

Examples:

- Draw a disc with the red dither superimposed on a circle

Circle(40,50,30)

ColorBrush(255,0,0)

Brush(2)

Circle(60,50,30)

- Draw a white disc superimposed on a circle

Circle(40,50,30)

Brush(7)

Circle(60,50,30)