How To Draw Shapes (Circle, Ellipse, Rectangle, Square, Polygon) In SVG

SVG is the abbreviation of Scalable Vector Graphics. It uses XML format text to define vector graphics. It is recommended by W3C to draw graphics on the Html web pages. This article will tell you how to use SVG in the Html web page to draw Circle, Ellipse, Rectangle, Square, Polygon shapes with some examples.

How To Draw Shapes (Circle, Ellipse, Rectangle, Square, Polygon) In SVG Read More »

How To Fix Pygame.PixelArray IndexError: Invalid Index Error

I create a pygame.PixelArray object uses the pygame main screen window surface object ( returned by the method pygame.display.set_mode() ), and when I assign color to each item of the pygame.PixelArray object in a loop it throws the error pygame.PixelArray IndexError: invalid index. This article will tell you how to fix it.

How To Fix Pygame.PixelArray IndexError: Invalid Index Error Read More »