2D_PEN_WIDTH

2D_PEN_WIDTH W

SET THE DRAWING WIDTH (PEN)

  • Type: Command
  • Parameter: 1
  • Group: Drawing

ACTION

The command 2D_PEN_WIDTH W set the drawing width (W in pixels) of all the further lines to be drawn.

By default, the drawing width is 1 pixel.

SYNTAX: 2D_PEN_WIDTH W

  • W = width expressed in pixels.

USE

  • The command 2D_PEN_WIDTH is used to set the width of the 2D drawings.

ERROR

  • If the width W is less than 0 or greater than 20.
  • If the width W is not a correct expression.

EXAMPLE

rem set the drawing width to 5 pixels

2d_pen_width 5

rem draw a circle with a line of 5 pixels width

2d_circle 100,100,50

SEE ALSO

2D_ARC

2D_CIRCLE

2D_RECTANGLE

2D_ELLIPSE

2D_LINE

2D_POLY_FROM

2D_POLY_TO

2D_POINT

2D_PEN_COLOR

2D_PEN_DASH

2D_PEN_DASH_DOT

2D_PEN_DASH_DOT_DOT

2D_PEN_DOT

2D_PEN_SOLID