mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 23:00:45 +01:00
[python/turtle] Turtle::circle(radius, angle)
This commit is contained in:
@@ -44,6 +44,11 @@ mp_obj_t modturtle_left(mp_obj_t angle) {
|
||||
return mp_const_none;
|
||||
}
|
||||
|
||||
mp_obj_t modturtle_circle(mp_obj_t radius, mp_obj_t angle) {
|
||||
sTurtle.circle(mp_obj_get_int(radius), mp_obj_get_float(angle));
|
||||
return mp_const_none;
|
||||
}
|
||||
|
||||
mp_obj_t modturtle_goto(size_t n_args, const mp_obj_t *args) {
|
||||
mp_float_t x = 0;
|
||||
mp_float_t y = 0;
|
||||
|
||||
Reference in New Issue
Block a user