def METHOD_NAME(self, color):
    border_color = tuple(color[:3]) + (1,)  # always opaque
    polygon_color = color
    # Clean up polygon faces before making it transparent, otherwise
    # it keeps the previous visualization of the polygon without cleaning
    if polygon_color[-1] == 0:
        self._polygon.mesh.set_data(faces=[])
    self._polygon.color = polygon_color
    self._polygon.border_color = border_color
    self._line.set_data(color=border_color)