FOR THE VERSION 0.9.27
PART 3 - DRAWING
Drawing of points, lines, polylines (set of segments), circles, rectangles, on a "2D_targeted" FORM or PICTURE.
2D_PEN_COLOR R, G, B | Set the color of all the further lines (by combining values of Red, Green, Blue). |
2D_PEN_WIDTH W | Set the width (W in pixels) of all the further lines. |
2D_PEN_DOT | Set the drawing style (pen): series of dots. |
2D_PEN_DASH | Set the drawing style (pen): series of dashes. |
2D_PEN_SOLID | Set the drawing style (pen): solid. |
2D_PEN_DASH_DOT | Set the drawing style (pen): alternating dashes and dots. |
2D_PEN_DASH_DOT_DOT | Set the drawing style (pen): series of dash-dot-dot combinations. |
2D_FILL_COLOR R, G, B | Set the color of all the further surfaces (by combining values of Red, Green, Blue). |
2D_FILL_SOLID | Set the filling pattern of figures: solid. |
2D_FILL_CROSS | Set the filling pattern of figures: crossed lines. |
2D_FILL_VERTICAL | Set the filling pattern of figures: vertical lines. |
2D_FILL_HORIZONTAL | Set the filling pattern of figures: horizontal lines. |
2D_FILL_DIAGONAL_CROSS | Set the filling pattern of figures: diagonal crossed lines. |
2D_FILL_DIAGONAL_DOWN | Set the filling pattern of figures: diagonal down lines. |
2D_FILL_DIAGONAL_UP | Set the filling pattern of figures: diagonal up lines. |
2D_POINT X, Y | Draws the point (X, Y). |
2D_POLY_FROM X, Y | Set the current position (X, Y) of the pen. (first point of a poly-line) |
2D_POLY_TO X, Y | Draws a segment from the
current position of the pen to the point (X, Y). (segment of a poly-line)
The point (X, Y) becomes the current position for a new command 2D_POLY_TO. |
2D_LINE X1, Y1, X2, Y2 | Draws the line from the point (X1, Y1) to the point (X2, Y2). |
2D_CIRCLE X, Y, R | Draws a circle of center (X, Y) and radius R. |
2D_RECTANGLE X1, Y1, X2, Y2 |
Draws the rectangle between 2 different points (X1, Y1) and (X2, Y2). |
2D_FILL_ON |
The next figures 2D_CIRCLE and 2D_RECTANGLE will be filled with the color defined by 2D_FILL_COLOR |
2D_FILL_OFF |
The next figures 2D_CIRCLE and 2D_RECTANGLE will be transparent |
2D_CLEAR | Clears all the drawings of the 2D-target object. |
CLS | Clears all the drawings of the 2D-target object (same than 2D_CLEAR). |
2D_FLOOD X, Y, R, G, B | Paints a surface from a point. |
1.7 - Using a system object IMAGE
2D_IMAGE_COPY N, X1, Y1, X2, Y2 |
Copies the screen area defined by the 2 points (X1,Y1) and (X2,Y2) to the system object IMAGE number N. |
2D_IMAGE_PASTE N, X, Y |
Pastes the picture from the system object IMAGE number N to the point (X,Y). |
Last update: January 22, 2017