📜  pygame 绘制透明矩形 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:40.809000             🧑  作者: Mango

代码示例1
s = pygame.Surface((1000,750))  # the size of your rect
s.set_alpha(128)                # alpha level
s.fill((255,255,255))           # this fills the entire surface
windowSurface.blit(s, (0,0))    # (0,0) are the top-left coordinates