draw.drawEllipse

Section: Draw (immediate mode)

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

  • x
  • y
  • rx
  • ry
  • r
  • g
  • b
  • r2optional
  • g2optional
  • b2optional
  • filledoptional

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.

8 members in draw