Skip to content

Commit

Permalink
Fix image surfaces code example
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesej authored and lordmauve committed Jan 4, 2019
1 parent 901cee3 commit 6e96571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/builtins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ dimensions and so on::
forest = []
for i in range(5):
forest.append(
Actor('tree', topleft=(images.tree.width * i, 0))
Actor('tree', topleft=(images.tree.get_width() * i, 0))
)

Each loaded image is a Pygame ``Surface``. You will typically use
Expand Down

0 comments on commit 6e96571

Please sign in to comment.