Skip to content

Commit

Permalink
fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
hx2A committed May 24, 2022
1 parent ad24e18 commit e6efa19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import py5


def setup():
py5.size(200, 200)
py5.size(400, 400)
py5.rect_mode(py5.CENTER)


Expand Down
6 changes: 5 additions & 1 deletion py5_resources/py5_module/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ import py5


def setup():
py5.size(200, 200)
py5.size(400, 400)
py5.rect_mode(py5.CENTER)


def draw():
py5.square(py5.mouse_x, py5.mouse_y, 10)


def mouse_clicked():
py5.fill(py5.random_int(255), py5.random_int(255), py5.random_int(255))


py5.run_sketch()
```

Expand Down

0 comments on commit e6efa19

Please sign in to comment.