2019-10-01

pygame使用功能pygame.draw模块来绘制形状。
绘制图形绘制矩形pygame.draw.rect # draw a rectangle
有下面两种用法:
rect(surface, color, rect) -> Rect
2019-09-30
Pygame

Pygame中的Color有下面三种生成Color颜色对象的方式:
Color(r, g, b) -> Color
Color(r, g, b, a=255) -> Color
Color(color_value) -> Color
也就是
2019-09-30
Pygame

原文地址
Introduction这句话比较意思:
Setting the display mode in pygame creates a visible image surface on the monitor. This surfa
2019-09-30
Pygame

convert()还是从案例开始:
import pygame
from pygame.locals import *
def main():
# 初始化
pygame.init()
screen = pygame
2019-09-30
Pygame