Advertisement
rric

colorierte_texte

Dec 14th, 2023 (edited)
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.79 KB | None | 0 0
  1. # Ich stelle mich vor; mit viel Text und einigen Farben
  2. # Copyright 2022, 2023 Roland Richter                  [Mu: Pygame Zero]
  3.  
  4. # Erzeuge ein rechteckiges 800×500 Fenster
  5. WIDTH = 800
  6. HEIGHT = 500
  7.  
  8. def draw():
  9.     # Setze den Hintergrund auf "Majorelle Blue"
  10.     screen.fill("#6050DC")
  11.  
  12.     # Begrüße alle links oben mit großer Schriftart
  13.     screen.draw.text("Hallo, Welt!", (30, 30), fontsize=42)
  14.  
  15.     screen.draw.text("Ich bin Roland und freue mich auf den Kurs", (30, 120))
  16.     screen.draw.text("'Die vielen Seiten von Python'.", (30, 150))
  17.  
  18.     screen.draw.text("Ich unterrichte Mathematik, Informatik und", (30, 210))
  19.     screen.draw.text("Programmieren am Khevenhüller Gymnasium Linz.", (30, 240))
  20.  
  21.     screen.draw.text("Davor habe ich an der JKU Linz gearbeitet und dort", (30, 310))
  22.     screen.draw.text("etwa 150.000 Zeilen C, C++ und Java geschrieben.", (30, 340))
  23.  
  24.     screen.draw.text("Aber ich verwende auch Scratch und Python gerne und", (30, 410))
  25.     screen.draw.text("programmiere damit Kunst, micro:bits und Spiele.", (30, 440))
  26.  
  27. def update():
  28.     pass
  29.  
  30. # ----------------------------------------------------------------------
  31. # This program is free software: you can redistribute it and/or modify
  32. # it under the terms of the GNU General Public License as published by
  33. # the Free Software Foundation, either version 3 of the License, or
  34. # (at your option) any later version.
  35. #
  36. # This program is distributed in the hope that it will be useful,
  37. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  38. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  39. # GNU General Public License for more details.
  40. #
  41. # You should have received a copy of the GNU General Public License
  42. # along with this program.  If not, see <https://www.gnu.org/licenses/>.
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement