Skip to content

Commit

Permalink
rect builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
bletvaska committed Nov 23, 2018
1 parent c41d9a7 commit 1941f42
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/builtins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,10 @@ draw images to the screen ("blit" them).
Rect
----

The `Pygame Rect`_ class is available as a built in. This can be used in a
variety of ways, from detecting clicks within a region to drawing a box onto
the screen:
Trieda `Pygame Rect`_ je dostupná ako zabudovaná. Je možné ju použiť mnohými spôsobmi,
ako napríklad na detekciu kliknutí v oblasti ohraničenej práve obdĺžnikom:

For example, you can draw a box with::
Obdĺžnik nakreslíte napríklad takto::

RED = 200, 0, 0
BOX = Rect((20, 20), (100, 100))
Expand Down

0 comments on commit 1941f42

Please sign in to comment.