The conventional symbol for settings created by concentric filled circles and curcumferencial rectangles.
Feel free to copy the basic Python Turtle code that is given below. Don't hesitate to ask questions about the code if you have any. Enjoy! Please comment, like, or subscribe :)
Incidentally, for more graphics and variations, please visit my author url at https://www.amazon.com/author/basicpy...
import turtle
t = turtle.Turtle() #Definitions and Initializations
screen = turtle.Screen()
t.pensize(4)
radius = 200 #Size of graphic; Radius of biggest circle; Changeable from 197 to 203
number_of_teeth = 10 #Cog teeth; Changeable to integers adjacent to 10
band_width = 10 #Width of circular and straight bands; Changeable to 8, 9, 11, or 12
def color_filled_circle(radius): #Procedure for drawing a filled circle with current value of radius
t.begin_fill()
t.circle(radius)
t.end_fill()
def cog_teeth(): #Procedure for drawing rectangles (teeth), each surrounded by thick bands
for j in range(number_of_teeth): #Loop to draw thick-banded rectangles using index j, different from i
t.begin_fill() #that is used for embedded loops
for i in range(2): #Loop to draw 2 pairs of sides of filled rectangle
t.left(90)
t.forward(0.4 * radius)
t.left(90)
t.forward(0.35 * radius)
t.end_fill()
for i in range(2): #Loop to move turtle to starting point of rectangle within the first
t.left(90)
t.forward(band_width)
t.fillcolor("white")
t.begin_fill()
for i in range(2): #Loop to draw 2 pairs of sides of smaller, filled rectangle
t.forward(0.25 * radius)
t.right(90)
t.forward(0.3 * radius)
t.right(90)
t.end_fill()
t.penup() #For the next 7 lines, trail-less movement of turtle to starting point
t.home() #of next thick-banded rectangle with index j -- not i --
t.left((360 / number_of_teeth) * (1 + j)) #dictating turtle rotation
t.forward(1.2 * radius)
t.left(90)
t.forward(0.175 * radius)
t.color("green")
t.pendown()
t.penup() #Python_Graphic start of drawing procedure
t.forward(radius)
t.left(90)
t.color("green")
t.pendown()
color_filled_circle(radius) #Function call to draw the biggest filled circle
t.right(90)
t.penup()
t.forward(0.2 * radius)
t.left(90)
t.forward(0.175 * radius)
t.pendown()
cog_teeth() #Function call to draw the cog teeth in raw, rectangular forms
t.penup()
radius = radius - band_width
t.goto(radius, 0)
t.color("white")
color_filled_circle(radius) #Function call to draw a slightly smaller and filled circle,
radius = 0.6 * radius #revealing a circular band with given width
t.goto(radius, 0)
t.color("green")
color_filled_circle(radius) #Function call to draw a filled circle smaller than the preceding
radius = radius - 1.3 * band_width #one, for the outer edge of smaller circular band
t.goto(radius, 0)
t.color("white")
color_filled_circle(radius) #Function call to draw a filled circle slightly smaller than
t.hideturtle() #the preceding one for the inner edge of circular band
screen.exitonclick()