We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9d59a commit 73ff886Copy full SHA for 73ff886
1 file changed
py5_docs/Reference/api_en/Py5Graphics_is3d.txt
@@ -11,3 +11,19 @@ is3d() -> bool
11
Boolean value reflecting if the Py5Graphics object is or is not a 3D renderer.
12
13
This will be `True` if the renderer is a 3D renderer such as `P3D`.
14
+
15
+@@ example
16
+def setup():
17
+ py5.size(200, 200)
18
+ g = py5.get_graphics()
19
20
+ # prints False
21
+ print(g.is3d())
22
23
24
25
+ py5.size(200, 200, py5.P3D)
26
27
28
+ # prints True
29
0 commit comments