Timeline for Plot a centered circle
Current License: CC BY-SA 4.0
30 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 13, 2021 at 8:22 | history | edited | Arty | CC BY-SA 4.0 |
added 2 characters in body
|
| Jun 13, 2021 at 8:04 | comment | added | Arty | @ovs Thanks! Updated post for 55 bytes. | |
| Jun 13, 2021 at 8:04 | history | edited | Arty | CC BY-SA 4.0 |
added 43 characters in body
|
| Jun 13, 2021 at 7:56 | comment | added | ovs |
Instead of lifting the pen and putting it backdown, you can clear() the canvas after sety: def f(r):sety(-r);clear();circle(r) for -2
|
|
| Sep 23, 2020 at 9:10 | history | edited | Arty | CC BY-SA 4.0 |
added 119 characters in body
|
| Sep 23, 2020 at 9:09 | comment | added | Arty |
@DominicvanEssen I came up with turtle solution as a first result in Googling "graphics python".
|
|
| Sep 23, 2020 at 8:06 | comment | added | Dominic van Essen | This is a really cool approach, and I can't believe there aren't more turtle golfs in Python! | |
| Sep 23, 2020 at 4:09 | comment | added | Arty | @Sisyphus Thanks, updated! | |
| Sep 23, 2020 at 4:09 | history | edited | Arty | CC BY-SA 4.0 |
deleted 147 characters in body
|
| Sep 23, 2020 at 1:42 | comment | added | Sisyphus | I think you can save a byte by making it a function submission instead: Try it online! | |
| Sep 22, 2020 at 17:27 | history | edited | Arty | CC BY-SA 4.0 |
edited body
|
| Sep 22, 2020 at 17:21 | history | edited | Arty | CC BY-SA 4.0 |
edited body
|
| Sep 22, 2020 at 17:15 | comment | added | Arty |
Just figured out that sety can be used instead of goto.
|
|
| Sep 22, 2020 at 17:15 | history | edited | Arty | CC BY-SA 4.0 |
deleted 3 characters in body
|
| Sep 22, 2020 at 17:11 | comment | added | Digital Trauma |
@Arty On my system, python3 requires the int(), python doesn't.
|
|
| Sep 22, 2020 at 17:05 | history | edited | Arty | CC BY-SA 4.0 |
added 21 characters in body
|
| Sep 22, 2020 at 17:04 | comment | added | Arty |
@DigitalTrauma For me without int() doesn't work passing str r.
|
|
| Sep 22, 2020 at 16:26 | comment | added | Digital Trauma |
fd() is an alias of forward(). Also you can use goto() to set the start position: 60 bytes with the other suggestions
|
|
| Sep 22, 2020 at 16:11 | comment | added | Razetime | so long as it displays the circle, even for a frame, there is no problem. I think you can remove int() from int(input()) as well. | |
| Sep 22, 2020 at 16:10 | comment | added | Arty |
If window is allowed to be closed automatically after drawing is done, then done() can be removed from end of code, it just prevents window from closing.
|
|
| Sep 22, 2020 at 15:59 | history | edited | Arty | CC BY-SA 4.0 |
deleted 18 characters in body
|
| Sep 22, 2020 at 15:54 | comment | added | Arty | Just realized that just drawing circle gives non-centered result, added code for centering. | |
| Sep 22, 2020 at 15:53 | history | edited | Arty | CC BY-SA 4.0 |
added 50 characters in body
|
| Sep 22, 2020 at 15:41 | history | edited | Arty | CC BY-SA 4.0 |
added 5 characters in body
|
| Sep 22, 2020 at 15:38 | history | edited | caird coinheringaahing ♦ | CC BY-SA 4.0 |
deleted 4 characters in body
|
| Sep 22, 2020 at 15:33 | comment | added | Arty | @Razetime Thanks, corrected! | |
| Sep 22, 2020 at 15:33 | review | First posts | |||
| Sep 22, 2020 at 15:38 | |||||
| Sep 22, 2020 at 15:31 | history | edited | Arty | CC BY-SA 4.0 |
added 4 characters in body
|
| Sep 22, 2020 at 15:30 | comment | added | Razetime | The question asks for user input, so you need to input radius r, then draw a circle of radius r. | |
| Sep 22, 2020 at 15:29 | history | answered | Arty | CC BY-SA 4.0 |