ELLIPSE2

Synopsis
ELLIPSE2 inline.semiaxis crosswise.semiaxis
Description

Draws an ellipse as if the turtle moved clockwise in an ellipse. The size and shape of the ellipse are determined by the inline.semiaxis and crosswise.semiaxis inputs. The inline.semiaxis input is the distance from the center-point of the ellipse to the ellipse's edge in the direction which the turtle is currently heading. The crosswise.semiaxis input is the distance from the center-point of the ellipse to the ellipse's edge in the direction perpendicular to the turtle's current heading.

The ellipse is drawn tangent to the turtle's current position and heading. This tangent point is at the extreme of the ellipse's crosswise axis and the whole ellipse appears to the turtle's right.

Note that the inline.semiaxis and crosswise.semiaxis inputs are given in the reverse order as the inputs to the ELLIPSE command.

Example
; a 2D example
ELLIPSE2 100 200
CLEARSCREEN
ELLIPSE2 50 50
CLEARSCREEN
ELLIPSE2 50 50
; a 3D example
PERSPECTIVE
REPEAT 72 [ELLIPSE2 200 100 RIGHTROLL 5 FORWARD 5]
See Also
ELLIPSE

SourceForge.net Logo