This statement affects the width and height of shapes subsequently drawn with the
circle statement. By suitably setting the
v parameters, you can draw ellipses with any aspect ratio.
v can range in value from -128 to +127. The
h parameter affects the width of the ellipse, and the
v parameter affects its height. When you subsequently execute a
circle statement with a radius parameter of
radius, a circle or ellipse is drawn which has these dimensions:
Shape's width =
2 * radius * (1 + h /128)Shape's height =
2 * radius * (1 + v /128)
We can notice a few consequences of these formulas:
After you execute a
v are equal, a circle is drawn.
v are different, an ellipse is drawn.
v, the ellipse is wider than it is tall.
h, the ellipse is taller than it is wide.
- Negative values of
v cause the corresponding dimension to shrink. Positive values cause the corresponding dimension to grow (up to about twice its original size).
ratio 0,0 "resets" the ratios: subsequent
circle statements will draw a circle with the indicated radius.
ratio statement, the indicated
v values remain in effect for all subsequent
circle statements (in all windows), until another
ratio statement is executed.