1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00
3 G2D.FillEllipse
boxgaming edited this page 2023-09-07 10:49:16 -05:00

Draws a filled ellipse.

Syntax

G2D.FillEllipse x&, y&, radiusX&, radiusY& [, rotation& ][, clr~&]

Parameters

  • The ellipse will be drawn with its center at the position specified by the x& and y& parameters.
  • The size of the ellipse is defined by the radiusX& and radiusY& parameters.
  • The optional rotation& parameter defines the rotation of the ellipse in degrees. If not specified, this value defaults to 0.
  • The optional color~& parameter defines the color of the triangle. If not specified, the default color will be used.

Examples

Example1: Draw numerous filled ellipses of random size at random locations and angles of rotation.

Import G2D From "lib/graphics/2d.bas"

Randomize Timer
For i = 0 to 500
    G2D.FillEllipse Rnd * 640, Rnd * 400, Rnd * 40 + 10, Rnd * 40 + 10, Rnd * 360, Rnd * 14 + 1
    _Limit 200
Next i

See Also

G2D.Ellipse G2D.FillCircle