DrawEllipse

Family: Core · One form

What it does

DrawEllipse makes something happen at once: it draws. It takes x (a float), y (a float), radiusx (a float), radiusy (a float), color1 (an integer), color2 (an integer) and filled (an integer), and returns nothing.

Syntax

DrawEllipse(x float, y float, radiusx float, radiusy float, color1 integer, color2 integer, filled integer)

Parameters

NameType
xfloat
yfloat
radiusxfloat
radiusyfloat
color1integer
color2integer
filledinteger

Every form returns

nothing

Example · generated

DrawEllipse(100.0, 120.0, 1.0, 1.0, 1, 1, 1)DO  Sync()LOOP

DrawEllipse is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

Related commands

200 commands in Core