Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import numpy as np
import matplotlib.pyplot as plt
class Agent:
"This is the agent class. An agent is a car object that moves along the track, as represented in the animation."
size = 1
color = ''
# INITIALIZE X,Y LOC, SIZE, & COLOR ------------------------------------------------
def __init__(self,size,color):
self.size = size
self.color = color
# plt.figure() #display figure in env
# plt.axes(xlim=(0,20), ylim=(0,20))
# patch = plt.Circle((self.start_x,self.start_y), self.size, fc = self.color)
# plt.gca().add_patch(patch)
# plt.show()