def setup(self):
pl = Plot(self.size, [-4, 4, -1.5, 1.5]).config(bg="white")
pl.series(sin, param=[-pi, pi, 2 * self.width - 1], marker=("blue", 4))
self.bg = pl.snapshot()
robo = Robot(["#ff5050", "#ffd428"])
self["Traci"] = self.bindBrain(robo).config(width=60, pos=self.center)
评论列表
文章目录