pygame zero how to draw text

Solutions on MaxInterview for pygame zero how to draw text by the best coders in the world

showing results for - "pygame zero how to draw text"
Olivia
13 Jan 2017
1screen.draw.text("Text color", (50, 30), color="orange")
2screen.draw.text("Font name and size", (20, 100), fontname="Boogaloo", fontsize=60)
3screen.draw.text("Positioned text", topright=(840, 20))
4screen.draw.text("Allow me to demonstrate wrapped text.", (90, 210), width=180, lineheight=1.5)
5screen.draw.text("Outlined text", (400, 70), owidth=1.5, ocolor=(255,255,0), color=(0,0,0))
6screen.draw.text("Drop shadow", (640, 110), shadow=(2,2), scolor="#202020")
7screen.draw.text("Color gradient", (540, 170), color="red", gcolor="purple")
8screen.draw.text("Transparency", (700, 240), alpha=0.1)
9screen.draw.text("Vertical text", midleft=(40, 440), angle=90)
10screen.draw.text("All together now:\nCombining the above options",
11    midbottom=(427,460), width=360, fontname="Boogaloo", fontsize=48,
12    color="#AAFF00", gcolor="#66AA00", owidth=1.5, ocolor="black", alpha=0.8)
13