-
-
Save NicolaM94/4124e8e1b60a806dfa8e18d34f5f1611 to your computer and use it in GitHub Desktop.
Function to draw times tables on turtle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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