@mledeere/

# Car (extra credit)

## No description

main.py
```1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
```
```import turtle
turtle.shape('turtle')

turtle.speed(5)
turtle.pensize(10)

#wheel
turtle.penup()
turtle.goto(0,0) #make this is where you want the wheel to go
turtle.color('black','black') #black
turtle.pendown()
turtle.begin_fill()
turtle.circle(125,360) #outside wheel
turtle.end_fill()
turtle.penup()
turtle.goto(0,45)
turtle.color('gray','gray') #black and gray
turtle.pendown()
turtle.begin_fill()
turtle.circle(80,360)  #inner rim
turtle.end_fill()
turtle.penup()

turtle.color('black','gray') #black and gray
turtle.goto(0,250)  #vertical spoke
turtle.pendown()
turtle.right(90)
turtle.forward(250)
turtle.penup()

turtle.goto(125,125)  #horizontal spoke
turtle.pendown()
turtle.right(90)
turtle.forward(250)
turtle.penup()

#diagonal spokes (using cos and sin to calculate points)
# x = cx + r * cos(a)  cx = origin  r = radius  a = angle
# y = cy + r * sin(a)  cy = origin  r = radius  a = angle

# origin = 0,125  angle = 135 to 315  radius = 125

turtle.goto(-88.4,213.4)
turtle.pendown()
turtle.goto(88.4,36.6)

#turtle.goto(-44.2,190)
#turtle.pendown()
#turtle.goto(44.2,53)

turtle.penup()
turtle.goto(88.4,213.4)
turtle.pendown()
turtle.goto(-88.4,36.6)

turtle.penup()
```
result
console