FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
py5-python-and-java/hybrid-programming/example3/example3.py at main · py5coding/py5-python-and-java · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
py5coding
/
py5-python-and-java
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
0
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
py5-python-and-java
/
hybrid-programming
/
example3
/
example3.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (10 loc) · 404 Bytes
Breadcrumbs
py5-python-and-java
/
hybrid-programming
/
example3
/
example3.py
Copy path
File metadata and controls
16 lines (10 loc) · 404 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import
py5
def
setup
():
py5
.
size
(
500
,
500
,
py5
.
P2D
)
def
draw
():
for
_
in
range
(
3
):
size
=
py5
.
random_int
(
50
,
150
)
color
=
py5
.
color
(
py5
.
random_int
(
0
,
255
),
py5
.
random_int
(
0
,
255
),
py5
.
random_int
(
0
,
255
))
# call Py5Utilities Java method to draw a happy face
py5
.
utils
.
drawHappyFace
(
py5
.
random
(
py5
.
width
),
py5
.
random
(
py5
.
height
),
color
,
size
)
py5
.
run_sketch
()
Back
|
FazBrowse Home
|
New Git URL