2D_FILL_ON

2D_FILL_ON

THE FUTURE SHAPES 2D_CIRCLE AND 2D_RECTANGLE WILL BE FILLED WITH THE COLOR DEFINED BY 2D_FILL_COLOR

  • Type: Command
  • Parameter: 0
  • Group: Drawing

ACTION

The command 2D_FILL_ON enables the filling of shapes 2D_CIRCLE and 2D_RECTANGLE with the color defined by 2D_FILL_COLOR.

This command does not apply to the existing shapes 2D_CIRCLE and 2D_RECTANGLE, but to the future ones.

SYNTAX: 2D_FILL_ON

USE

  • The command 2D_FILL_ON is used to fill the next shapes 2D_CIRCLE and 2D_RECTANGLE with a color.

ERROR

  • None.

EXAMPLE

rem create an object PICTURE for drawing

picture 1

rem PICTURE takes a size of 300 x 300 pixels

width 1,300:height 1,300

rem PICTURE is the target for drawing

2d_target_is 1

rem draw a rectangle with yellow border

rem and filled with pink color

2d_clear

2d_pen_width 6

2d_pen_color 250,250,0

2d_fill_color 250,0,250

2d_rectangle 10,10,400,350

SEE ALSO

2D_FILL_OFF

2D_CIRCLE

2D_RECTANGLE

2D_ELLIPSE