code: def update_vertex_list(self):
          
          color = color_to_tuple(self.color, self.opacity)
          length = len(self.points) // 2
          self.vertex_list = pyglet.graphics.vertex_list(
              length,
              ('v2f', self.points),
              ('c4B', color * length))
docs: 使用pyglet来绘制基本图形之前，转为pyglet识别的属性