rightnsa.blogg.se

How to make transparent background in firealpaca
How to make transparent background in firealpaca











how to make transparent background in firealpaca

Keep in mind in the first case, that anything else you draw to s will get blitted with the alpha value you specify. Or, s = pygame.Surface((1000,750), pygame.SRCALPHA) # per-pixel alpha WindowSurface.blit(s, (0,0)) # (0,0) are the top-left coordinates You can do either: s = pygame.Surface((1000,750)) # the size of your rect Also, you can specify alpha at the surface level (faster and less memory) or at the pixel level (slower but more precise). Blitting will do alpha blending and color keys. What you can do is create a second surface and then blit it to the screen. The alpha value will be written directly into the Surface if it contains pixel alphas, but the draw function will not draw transparently. These can also accept an RGBA quadruplet. Most of the arguments accept a color argument that is an RGB triplet. Pygame.draw functions will not draw with alpha.













How to make transparent background in firealpaca