Prijavi problem


Obeleži sve kategorije koje odgovaraju problemu

Još detalja - opišite nam problem


Uspešno ste prijavili problem!
Status problema i sve dodatne informacije možete pratiti klikom na link.
Nažalost nismo trenutno u mogućnosti da obradimo vaš zahtev.
Molimo vas da pokušate kasnije.

Programming in Python, handbook

Drawing text

Drawing programs often print various messages along with the pictures (you have probably seen many examples yourself). Here’s how to do that in PyGame:

Single letters: In this example first each letter is displayed individually and then all letters are switched on and off 3 times. Can you copy this behavior?

Hint: The display positions of the individual letters are (0, 0), (50, 0), (100, 0), (150, 0), etc. The number of frames in a cycle is 6 plus the number of letters in the text. The rest of the ideas are very similar to those in the previous examples.

Lastly, if you wish, you can make a neon sign of your own design here.