My question is simple: What is the difference between using pygame.draw and pygame.gfxdraw? I’ve looked on the pygame documentation, but no one has told what the difference between them is.
My question is simple: What is the difference between using pygame.draw and pygame.gfxdraw ?
Share
The
drawfunction is a bit more stable, and also a bit faster thatgfxdraw, althoughgfxdrawhas more options, not only along the lines of antialiasing, but also drawing shapes.pygame.drawhas only nine functions, whereaspygame.gfxdrawhas 22 options, which include all 9 of the options supplied bydraw. I recommend usinggfxdraweven though its is “experimental” because it has more capabilities.