Skip to content

Instantly share code, notes, and snippets.

@NicolaM94
Created June 8, 2023 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NicolaM94/4124e8e1b60a806dfa8e18d34f5f1611 to your computer and use it in GitHub Desktop.
Save NicolaM94/4124e8e1b60a806dfa8e18d34f5f1611 to your computer and use it in GitHub Desktop.
Function to draw times tables on turtle
def timeTablesDrawer (
radius :int,
origin :tuple,
numberOfPoints :int,
timesTable :float,
penSize :int = 1,
penColor :str = "blue",
writeLabel :bool = False,
speed :str = "fastest"
):
bob = turtle.Turtle()
bob.speed(speed)
coordinates = {}
drawCircle(bob,radius,origin,penSize,penColor,writeLabel)
drawCircumferencePoints(bob,radius,coordinates,numberOfPoints,penSize,penColor,writeLabel)
drawTable(bob,timesTable,coordinates,radius,numberOfPoints,penSize,penColor)
turtle.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment