Command: ellipse

Syntax

{<entity> = } ellipse

Description

Create an ellipse or elliptical arc graphic entity, or a series of points forming a full ellipse or elliptical arc.

Parameters

Switches

Notes

If the command has the form <entity> = ellipse, an entity is always created.

If the command has no entity assignment, then an entity will be created only if the -op option is not used, or the command is not within another entity creation block, e.g. lines, polygon.

All point parameter expressions are computed relative to the last computed point parameter.

Examples

Create an unnamed ellipse entity.

ellipse -c=p0, -r1=1000, -r2=300

Create a named ellipse entity (90 degree sweep).

entity my_ell = ellipse -p1=e:100, -p2=n:200, -a1=0,\ 
    -a2=90, -col=red

Store ellipse points into an array (no entity created).

point eps[]
ellipse -c=(10,10,0), -p1=e:5000, -p2=n:4000, -op=eps

Add ellipse points during the creation of a polygon entity.

polygon -no_draw {
    gc, e:1000, n:200
    ellipse -c=n:300, -p1=n:300, -p2=e:50, -a1=0,\ 
       -a2=180, -ap=32
    n:200, w:1000, r
}

See Also

Commands:

arc, entity, gstructure, point

Identifiers:

angle_mode, (string), def_approx (numeric), def_color (color), def_fragment (numeric), def_rank (numeric)

Structures:

entity (ellipse)