pygame7基本图形的绘制,rect,polygon,circle,ellipse

【1701H1】【穆晨】【180228】第141天总结

rect(Surface,color,Rect,width=0)绘制矩形

clock.tick()调整帧率,给cpu减压

pygame7基本图形的绘制,rect,polygon,circle,ellipse

pygame7基本图形的绘制,rect,polygon,circle,ellipse

polygon(Surface,color,pointlist,width=0)绘制多边形

poinlist指定多边形的各个顶点坐标

pygame7基本图形的绘制,rect,polygon,circle,ellipse

pygame7基本图形的绘制,rect,polygon,circle,ellipse

circle(Surface,color,pos,radius,width=0)

绘制圆,pos圆心的位置,radius半径

pygame7基本图形的绘制,rect,polygon,circle,ellipse

pygame7基本图形的绘制,rect,polygon,circle,ellipse

(100,100,440,100)(矩形左上角坐标,,长,宽)

ellipse(Surface,color,Rect,width=0)椭圆

tkinter中圆和椭圆是一起的,但pygame分开了