How to use the PyGame Surface blit method explained with 3 examples

Опубликовано: 08 Ноябрь 2024
на канале: Professor Gerry Jenkins
4,765
43

Code examples to explain 3 common way to use PyGame blit:
1. Basic blit with two arguments for image to screen
2. blit with three arguments to copy part of image to screen
3. bit from surface to itself, such as screen to screen surface
Code is for blog article https://gjenkinsedu.com/post/pygame_s... that also covers a little history of blit. and an example of using the special_flags argument to do Add blending.

See code base at https://github.com/gerryjenkinslb/bli...