Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Hi all. I'm trying to create a pie chart. I started by following the Creator-Defined Displayables example and managed to get a circle drawn to the screen with a custom displayable using canvas.circle(...). Then I tried canvas.arc(...), but I get an exception that says error: Not Implemented. Is there no way to draw arcs right now?
The linked documentation says "A canvas object has methods corresponding to the pygame.draw functions", and links to here, where there is an arc function.
ApolloM wrote: ↑Fri May 08, 2020 8:41 pm
Hi all. I'm trying to create a pie chart. I started by following the Creator-Defined Displayables example and managed to get a circle drawn to the screen with a custom displayable using canvas.circle(...). Then I tried canvas.arc(...), but I get an exception that says error: Not Implemented. Is there no way to draw arcs right now?
The linked documentation says "A canvas object has methods corresponding to the pygame.draw functions", and links to here, where there is an arc function.
I have previously drawn lines in a ren'py game (for a ray gun effect). I then imported pygame and used pygame.draw.line on a surface. I now tested doing pygame.draw.arc in the same way, but I too got an 'not implemented' error.
pygame.draw.arc does however work when I do it outside ren'py with only pygame and python.