@@ -86,51 +86,51 @@ class Window(pyglet.window.Window):
86
86
.. _pyglet_pg_window_style: https://pyglet.readthedocs.io/en/latest/programming_guide/windowing.html#window-style
87
87
88
88
Args:
89
- width (optional) :
89
+ width:
90
90
Window width. Defaults to 1280.
91
- height (optional) :
91
+ height:
92
92
Window height. Defaults to 720.
93
- title (optional) :
93
+ title:
94
94
The title/caption of the window
95
- fullscreen (optional) :
95
+ fullscreen:
96
96
Should this be full screen?
97
- resizable (optional) :
97
+ resizable:
98
98
Can the user resize the window?
99
- update_rate (optional) :
99
+ update_rate:
100
100
How frequently to run the on_update event.
101
- draw_rate (optional) :
101
+ draw_rate:
102
102
How frequently to run the on_draw event. (this is the FPS limit)
103
- fixed_rate (optional) :
103
+ fixed_rate:
104
104
How frequently should the fixed_updates run,
105
105
fixed updates will always run at this rate.
106
- fixed_frame_cap (optional) :
106
+ fixed_frame_cap:
107
107
The maximum number of fixed updates that can occur in one update loop.
108
108
defaults to infinite. If large lag spikes cause your game to freeze,
109
109
try setting this to a smaller number. This may cause your physics to
110
110
lag behind temporarily.
111
- antialiasing (optional) :
111
+ antialiasing:
112
112
Use multisampling framebuffer (antialiasing)
113
113
samples: Number of samples used in antialiasing (default 4).
114
114
Usually this is 2, 4, 8 or 16.
115
- gl_version (optional) : What OpenGL version to request.
115
+ gl_version: What OpenGL version to request.
116
116
This is ``(3, 3)`` by default and can be overridden when using more
117
117
advanced OpenGL features.
118
- screen (optional) : Pass a pyglet :py:class:`~pyglet.display.Screen` to
118
+ screen: Pass a pyglet :py:class:`~pyglet.display.Screen` to
119
119
request the window be placed on it. See `pyglet's window size &
120
120
position guide <pyglet_pg_window_size_position_>`_ to learn more.
121
- style (optional) : Request a non-default window style, such as borderless.
121
+ style: Request a non-default window style, such as borderless.
122
122
Some styles only work in certain situations. See `pyglet's guide
123
123
to window style <pyglet_pg_window_style_>`_ to learn more.
124
- visible (optional) :
124
+ visible:
125
125
Should the window be visible immediately
126
- vsync (optional) :
126
+ vsync:
127
127
Wait for vertical screen refresh before swapping buffer
128
128
This can make animations and movement look smoother.
129
- gc_mode (optional) : Decides how OpenGL objects should be garbage collected
129
+ gc_mode: Decides how OpenGL objects should be garbage collected
130
130
("context_gc" (default) or "auto")
131
- center_window (optional) :
131
+ center_window:
132
132
If true, will center the window.
133
- enable_polling (optional) :
133
+ enable_polling:
134
134
Enabled input polling capability.
135
135
This makes the :py:attr:`keyboard` and :py:attr:`mouse` attributes available for use.
136
136
@@ -356,17 +356,17 @@ def clear( # type: ignore # not sure what to do here, BaseWindow.clear is stati
356
356
set through :py:attr:`~arcade.Window.background_color`.
357
357
358
358
Args:
359
- color (optional) :
359
+ color:
360
360
Override the current background color with one of the following:
361
361
362
362
1. A :py:class:`~arcade.types.Color` instance
363
363
2. A 3 or 4-length RGB/RGBA :py:class:`tuple` of byte values (0 to 255)
364
364
365
- color_normalized (optional) :
365
+ color_normalized:
366
366
override the current background color using normalized values (0.0 to 1.0).
367
367
For example, (1.0, 0.0, 0.0, 1.0) making the window contents red.
368
368
369
- viewport (optional) :
369
+ viewport:
370
370
The area of the window to clear. By default, the entire window is cleared.
371
371
The viewport format is ``(x, y, width, height)``.
372
372
"""
@@ -455,19 +455,19 @@ def set_fullscreen(
455
455
to the size it was before entering fullscreen mode.
456
456
457
457
Args:
458
- fullscreen (optional) :
458
+ fullscreen:
459
459
Should we enter or leave fullscreen mode?
460
- screen (optional) :
460
+ screen:
461
461
Which screen should we display on? See :func:`get_screens`
462
- mode (optional) :
462
+ mode:
463
463
The screen will be switched to the given mode. The mode must
464
464
have been obtained by enumerating `Screen.get_modes`. If
465
465
None, an appropriate mode will be selected from the given
466
466
`width` and `height`.
467
- width (optional) :
468
- Override the width of the window. Will be rounded to :py:attr :`int`.
469
- height (optional) :
470
- Override the height of the window. Will be rounded to :py:attr :`int`.
467
+ width:
468
+ Override the width of the window. Will be rounded to :py:class :`int`.
469
+ height:
470
+ Override the height of the window. Will be rounded to :py:class :`int`.
471
471
"""
472
472
# fmt: off
473
473
super ().set_fullscreen (
@@ -1280,7 +1280,7 @@ class View:
1280
1280
and a game over screen. Each of these could be a different view.
1281
1281
1282
1282
Args:
1283
- window (optional) :
1283
+ window:
1284
1284
The window this view is associated with. If None, the current
1285
1285
window is used. (Normally you don't need to provide this).
1286
1286
"""
@@ -1304,15 +1304,15 @@ def clear(
1304
1304
set through :py:attr:`arcade.View.background_color`.
1305
1305
1306
1306
Args:
1307
- color(optional) :
1307
+ color:
1308
1308
override the current background color with one of the following:
1309
1309
1310
1310
1. A :py:class:`~arcade.types.Color` instance
1311
1311
2. A 3 or 4-length RGB/RGBA :py:class:`tuple` of byte values (0 to 255)
1312
- color_normalized (optional) :
1312
+ color_normalized:
1313
1313
Override the current background color using normalized values (0.0 to 1.0).
1314
1314
For example, (1.0, 0.0, 0.0, 1.0) making the window contents red.
1315
- viewport (optional) :
1315
+ viewport:
1316
1316
The viewport range to clear
1317
1317
"""
1318
1318
if color is None and color_normalized is None :
0 commit comments