Python Forum
Working with turtle graphics in python and colour slices of a pie graph...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with turtle graphics in python and colour slices of a pie graph...
#1
I am just wondering how I would go about colouring in individual slices of a pie graph in turtle graphics. I can create the individual slices, but I am having a hard time with the begin_fill() and end_fill() because it looks like I need to also draw the ARC before it will fill in the slice (even though the arc is already there with the circle having been drawn first).
Reply
#2
see: https://stackoverflow.com/questions/4127...-in-python
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  tuple indices must be integers or slices, not str cybertooth 16 11,388 Nov-02-2023, 01:20 PM
Last Post: brewer32
  Turtle Graphics - Screen & Window Sizing jerryf 1 810 Feb-09-2023, 08:02 PM
Last Post: jerryf
  Error "list indices must be integers or slices, not str" dee 2 1,444 Dec-30-2022, 05:38 PM
Last Post: dee
  TypeError: list indices must be integers or slices, not range Anldra12 2 2,558 Apr-22-2022, 10:56 AM
Last Post: Anldra12
  DELETE Post using Python FaceBook Graph API BIG_PESH 0 1,449 Mar-24-2022, 08:28 PM
Last Post: BIG_PESH
Question convert autohotkey script to python / macro - press key when pixel get colour willson94d 1 3,627 Jan-01-2022, 08:13 PM
Last Post: Yoriz
  Python graphics kaltenherz 1 1,710 Sep-05-2021, 05:19 PM
Last Post: jefsummers
  Python modules to extract data from a graph? bigmit37 5 22,355 Apr-09-2021, 02:15 PM
Last Post: TysonL
  Python Matplotlib: How do I plot lines with different end point in the same graph? JaneTan 0 1,573 Feb-28-2021, 11:56 AM
Last Post: JaneTan
  How to add an image to an existing facebook post using python graph API? Ascalon 0 2,210 Dec-01-2020, 08:33 PM
Last Post: Ascalon

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020