PANORAMIC: USER's GUIDE

FOR THE VERSION 0.9.27

PART 3 - DRAWING

MAIN PAGE / DOCUMENTATION


1 - 2D DRAWING


1 - 2D DRAWING

Drawing of points, lines, polylines (set of segments), circles, rectangles, on a "2D_targeted" FORM or PICTURE.

to the top

1.1 - PEN characteristics

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.

to the top

1.2 - Surface characteristic

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.

to the top

1.3 - Points and 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).

to the top

1.4 - Surfaces

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

to the top

1.5 - Clear

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).

to the top

1.6 - Painting from a point

2D_FLOOD X, Y, R, G, B Paints a surface from a point.

to the top

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).

to the top


Last update: January 22, 2017