pub fn draw_polygon(&mut self,
                        vertices: Poly,
                        line_color: Color,
                        line_width: Option<Scalar>,
                        fill_color: Option<Color>) -> PyResult<()> {
        {
            let len = vertices.as_slice().len();
            assert_pyval!(len >= 3, "Polygon must have 3 or more vertices, got {}", len);
        }

        self.draw_queue.push_back(DrawAction::Polygon {
            vertices,
            line_color,
            line_width,
            fill_color,
        });
        Ok(())
    }
/// Draws a polygon on the canvas.
Draws a polygon on the canvas.
Draws a polygon on the canvas .
pub fn draw_polygon(&mut self,
                        vertices: Poly,
                        line_color: Color,
                        line_width: Option<Scalar>,
                        fill_color: Option<Color>) -> PyResult<()> {
        {
            let len = vertices.as_slice().len();
            assert_pyval!(len >= 3, "Polygon must have 3 or more vertices, got {}", len);
        }
        self.draw_queue.push_back(DrawAction::Polygon {
            vertices,
            line_color,
            line_width,
            fill_color,
        });
        Ok(())
    }
pub fn draw_polygon ( & mut self , vertices : Poly , line_color : Color , line_width : Option < Scalar > , fill_color : Option < Color > ) -> PyResult < ( ) > { { let len = vertices . as_slice ( ) . len ( ) ; assert_pyval ! ( len 3 " " len ) ; } self . draw_queue . push_back ( DrawAction :: Polygon { vertices , line_color , line_width , fill_color , } ) ; Ok ( ( ) ) }
Draws a polygon on the canvas.
Draws a polygon on the canvas .
&mut self
vertices
Poly
line_color
Color
line_width
Option<Scalar>
fill_color
Option<Color>