Skip to main content
↑
↓
Spherical forums
Community for the
Sphere game engine
New?
Contact Us
to register an account!
1 Hour
1 Day
1 Week
1 Month
Forever
Community
Help
Search
Recent Posts
Log in
Contact Us
News
Spherical
Facebook
-
Twitter
-
Discord chat
New?
Contact us
to register an account!
Sphere Development
Sphere General
Proposed Change to FilledEllipse and OutlinedEllipse
1
Print
Topic: Proposed Change to FilledEllipse and OutlinedEllipse
(Read 3382 times)
previous topic
-
next topic
0 Members and 1 Guest are viewing this topic.
Flying Jester
Legendary Poster
Posts: 1,161
Logged
TurboSphere Developer
Proposed Change to FilledEllipse and OutlinedEllipse
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.
Learn some history?
The Flying Jester's Blog of Sorts
DaVince
Legendary Poster
Posts: 1,001
Logged
Administrator
Used Sphere for, like, half my life
Re: Proposed Change to FilledEllipse and OutlinedEllipse
Reply #1
–
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.
Spherical Downloads Repo
||
My (really old) Sphere stuff
Flying Jester
Legendary Poster
Posts: 1,161
Logged
TurboSphere Developer
Re: Proposed Change to FilledEllipse and OutlinedEllipse
Reply #2
–
December 20, 2013, 12:38:34 pm
I looked for such a thing (on the forums and the wiki), but couldn't find one.
Learn some history?
The Flying Jester's Blog of Sorts
DaVince
Legendary Poster
Posts: 1,001
Logged
Administrator
Used Sphere for, like, half my life
Re: Proposed Change to FilledEllipse and OutlinedEllipse
Reply #3
–
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.
Spherical Downloads Repo
||
My (really old) Sphere stuff
1
Print
Sphere Development
Sphere General
Proposed Change to FilledEllipse and OutlinedEllipse