diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/examples/gpu.7.py | 2 | ||||
-rw-r--r-- | doc/python_api/examples/gpu.8.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/python_api/examples/gpu.7.py b/doc/python_api/examples/gpu.7.py index 01082e7b6fe..9d881831c21 100644 --- a/doc/python_api/examples/gpu.7.py +++ b/doc/python_api/examples/gpu.7.py @@ -29,7 +29,7 @@ with offscreen.bind(): amount = 10 for i in range(-amount, amount + 1): x_pos = i / amount - draw_circle_2d((x_pos, 0.0), (1, 1, 1, 1), 0.5, 200) + draw_circle_2d((x_pos, 0.0), (1, 1, 1, 1), 0.5, segments=200) # Drawing the generated texture in 3D space diff --git a/doc/python_api/examples/gpu.8.py b/doc/python_api/examples/gpu.8.py index 664f14a23ca..86a242b0258 100644 --- a/doc/python_api/examples/gpu.8.py +++ b/doc/python_api/examples/gpu.8.py @@ -34,7 +34,9 @@ with offscreen.bind(): for i in range(RING_AMOUNT): draw_circle_2d( (random.uniform(-1, 1), random.uniform(-1, 1)), - (1, 1, 1, 1), random.uniform(0.1, 1), 20) + (1, 1, 1, 1), random.uniform(0.1, 1), + segments=20, + ) buffer = fb.read_color(0, 0, WIDTH, HEIGHT, 4, 0, 'UBYTE') |