Spherical forums

Sphere Development => Sphere General => Topic started by: Flying Jester on December 20, 2013, 08:19:00 am

Title: Proposed Change to FilledEllipse and OutlinedEllipse
Post by: Flying Jester on December 20, 2013, 08:19:00 am
It would be useful if the Ellipse functions also took an angle parameter. This would change how the x and y axes were aligned, and let you draw arbitrary ellipses (rather than only cardinally aligned ellipses). It would be an optional parameter, and leaving it out would have the function default to the Sphere 1.5/1.6 behaviour.

Code: [Select]

    OutlinedEllipse(x, y, rx, ry, c [, a])
    FilledEllipse(x, y, rx, ry, c [, a])


This would be a valuable addition to the Sphere API because there is no simple way to do this in script, but it would be very simple in engine.
Title: Re: Proposed Change to FilledEllipse and OutlinedEllipse
Post by: DaVince on December 20, 2013, 11:58:19 am
Sounds interesting, useful, and easy enough to override in original Sphere!

Speaking of which, do we have a "Proposed changes" wiki page? That would be beneficial for the further development of Sphere's API as a whole, I think.
Title: Re: Proposed Change to FilledEllipse and OutlinedEllipse
Post by: Flying Jester on December 20, 2013, 12:38:34 pm
I looked for such a thing (on the forums and the wiki), but couldn't find one.
Title: Re: Proposed Change to FilledEllipse and OutlinedEllipse
Post by: DaVince on December 20, 2013, 12:50:11 pm
Then I'm making one! Reason is mostly to keep an overview of all these changes, especially on what we all decide on for the different implementations of Sphere.

http://wiki.spheredev.org/Proposed_changes_to_the_Sphere_API

Feel free to change it; this is just a draft.