📜  如何在pygame中将图像的背景颜色设置为透明 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:02.803000             🧑  作者: Mango

代码示例1
image = pygame.image.load("Your file location")
image.set_colorkey((0, 0, 0))  # If your bg color is black for the image