What it does
draw.drawEllipse draws Ellipse on a draw object. It takes x, y, rx, ry, r, g, b, r2, g2, b2 and filled. r2, g2, b2 and filled are optional.
Signature
draw.drawEllipse(x, y, rx, ry, r, g, b, r2?, g2?, b2?, filled?)Arguments
xyrxryrgbr2optionalg2optionalb2optionalfilledoptional
Example · generated
function start() { draw.drawEllipse(100, 120, 1, 1, 1, 0.8, 0.4);}draw.drawEllipse is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.