Calsign / APDE

Source code for APDE: Create and run Processing sketches on an Android device.
GNU General Public License v2.0
338 stars 76 forks source link

add `circle(float, float, float)` function #109

Open rinikapaul84 opened 3 years ago

rinikapaul84 commented 3 years ago

the desktop version contains circle(float, float, float) function which is an alternative to the ellipse(float, float, float, float) function when we need to draw a perfect circle. but apde doesn't.

rar0n commented 2 years ago

I just realized you can also add it yourself (as a work-around. But yeah would be nice to not have to do that on all sketches).

void circle(float x, float y, float s) {
   ellipse(x, y, s, s);
}
Calsign commented 2 years ago

circle was added to a version of Android mode that APDE has yet to update to. I am currently working on updating Android mode, and making upgrading a more streamlined process in the future. In the meantime, defining circle yourself seems like an easy, although unfortunate thing to have to do.

code-commenter commented 2 years ago

and "exit()" function

Muppetsg2 commented 1 year ago

and square(float, float, float)