FilledEllipse

From Spheriki

Jump to: navigation, search

Draws a filled ellipse on the screen with the specified color.


Contents

Usage

FilledEllipse(x, y, rx, ry, color);
  • x The x coordinate of the center of the ellipse.
  • y The y coordinate of the center of the ellipse.
  • rx The horizontal radius.
  • ry The vertical radius.
  • c The Sphere Color object to fill the ellipse with.


Examples

var blue = CreateColor(0, 0, 255);
FilledEllipse(40, 20, 10, 5, blue);

Draws a blue ellipse at (40, 20) that is 10 pixels wide and 5 pixels tall.


Notes

As with all graphical functions, remember to use FlipScreen() to display the results on the screen when you're finished drawing.


See also

Personal tools