Ellipse- Draws an ellipse
Draws an ellipse defined by center and semi-axis.
- Ellipse(X,Y,RX,RY[,R])
Parameters:
- (int) X: Horizontal coordinate of the center;
- (int) Y: Vertical coordinate of the center;
- (int) RX: length of horizontal semi-axis;
- (int) RY: length of vertical semi-axis;
- (int) R: degree of rotation of the ellipse (optional).
Description:
Use Ellipse to draw an ellipse. The ellipse is defined by the points X Y (center) and Rx RY (semi-axis length).
The perimeter of the ellipse is drawn with the current pen and color (Pen, ColorPen), while the surface is filled with the current brush or color (Brush, ColorBrush).
The optional parameter R defines the rotation of the ellipse 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 Ellipse. Move the pointer over a point on the graph and press the left button to fix the center of the ellipse. Move the pointer until you reach the desired semi-axis - you see the ellipse widening or narrowing according to the position of the pointer - and press the left mouse button.
Once the coordinates of the ellipse have been defined, the mouse wheel is used to rotate it around its hypothetical center or around a point of origin defined with the GraphicOrigin instruction. When using the mouse wheel with the Ctrl key, the ellipse is zoomed in or out. To insert the Ellipse instruction into the graph, confirm with the left mouse button.