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

Square- Draws a square

Draws a square in the graph.

- Square(X,Y,L[,R])

Parameters:

- (int) X: horizontal coordinate of the upper left vertex;

- (int) Y: vertical coordinate of the upper left vertex;

- (int) L: length of side;

- (int) R: rotation expressed in degrees (optional).

Description:

Use Square to draw a square. The square is defined by X Y (top left corner) and L (side length).

The perimeter of the square is drawn using the current pen and color (Pen, ColorPen), while the surface is filled with the current brush or color (Brush, ColorBrush).

Optional parameter R defines how to rotate the square around its center or around a origin point defined with the GraphicOrigin instruction. The value is expressed in degrees. If omitted the rotation is 0 degrees.

Drawing with the mouse:

From the drawing context menu choose Square. Move your pointer over the top left vertex and press the left button to fix it. Move the mouse pointer - a square that goes from the vertex to the pointer is drawn - and press the left button to end the square.

Once the square's coordinates have been defined, you use the mouse wheel to rotate it around its hypothetical center or around a point of origin defined with the GraphicOrigin instruction. If you use the mouse wheel with the Ctrl key, the square is enlarged or reduced. To insert the Square instruction into the graph, confirm with the left mouse button.