[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] RGBA question



I was wondering if the two sets of code should be doing the same thing:

This works...

artist_bg = pygame.Surface((994, 644))
artist_bg.fill((206, 158, 90))
artist_bg.set_alpha(125)

screen.blit(artist_bg, (15, 112))

but this doesn't...

artist_bg = pygame.Surface((994, 644))
artist_bg.fill((206, 158, 90, 125))

screen.blit(artist_bg, (15, 112))

In this specific case it doesn't matter, but I was trying to draw primatives with RGBA and it would also ignore the transparency.

Thanks,
Andy