Please enable JavaScript to view this site.

ESL Documentation

Drawing Statement

Move the graphics cursor in an arc.

In Specified Degrees:

move arc DEGREES degrees [counter clockwise|clockwise]

center [by|to|at] XCENTER YCENTER

To a Specified Endpoint:

move arc {by|to} XEND YEND [counter clockwise|clockwise]

center [by|to|at] XCENTER YCENTER

DEGREES degrees

An integer value representing the number of degrees of the arc. This moves the graphics cursor in an arc by the specified number of degrees. Positive degrees moves the arc in the direction of travel around the circle. Negative degrees moves the arc opposite to the direction of travel around the circle.

counter clockwise

Define the direction of travel around the circle as counterclockwise. This is the default.

clockwise

Define the direction of travel around the circle to be clockwise.

center [by]

The center of the arc is a position relative to the current position of the graphics cursor.

center to

center at

The center of the arc is an absolute position in the coordinate system of the object. The keywords to and at are synonymous.

XCENTER YCENTER

Integer values representing the horizontal (XCENTER) and vertical (YCENTER) centers of the arc.

XEND YEND

Integer values representing the horizontal (XEND) and vertical (YEND) endpoints of the arc.

by XEND YEND

This specification moves the graphics cursor in an arc by the specified number of coordinate positions relative to the current position of the graphics cursor. If the starting and ending points of the arc are not the same distance from the center and a center is specified, the cursor is moved from the starting point and the center exactly as specified, with the endpoint of the arc as close as possible to the specified endpoint while preserving the circularity of the arc.

to XEND YEND

This specification moves the graphics cursor in an arc to the absolute coordinate position specified by XEND and YEND. If the starting and ending points of the arc are not the same distance from the center and a center is specified, the cursor is moved in an arc from the starting point and the center exactly as specified, with the endpoint of the arc as close as possible to the specified endpoint while preserving the circularity of the arc.

Description

Use this statement to move the graphics cursor in an arc, as part of a boundary specification within a shape drawing statement. The move arc statement can only be used within a boundary specification within a shape drawing statement. This statement moves the graphics cursor from its current position to a new position along an arc, without drawing anything.

The center specification defines the center of the circular boundary defined by the arc. You must provide a center specification for the first arc in the first shape statement in a graphical object. Thereafter, if you specify a series of move arc and draw arc statements in a single graphical object, and if each arc has the same center, you do not need to provide additional center specifications. If you do not specify any center specification in one of these move arc or draw arc statements, the center is assumed to be the same as the center of the previous arc in that graphical object.

If you omit both the clockwise and the counter clockwise keywords, the direction of travel around the circle is counterclockwise.

Example

disabled key Logo at position 10 10

...

move arc 50 degrees center at 100 0

...

key Help at position XPos YPos

...

move arc 90 degrees clockwise center by -50 150

...

graphical region Shaper size 100 100 at position 0 0

...

move arc by 45 90 center by XC YC

...

See Also

draw arc Drawing Statement

shape Drawing Statement