@@ -86,51 +86,51 @@ class Window(pyglet.window.Window):
8686 .. _pyglet_pg_window_style: https://pyglet.readthedocs.io/en/latest/programming_guide/windowing.html#window-style
8787
8888 Args:
89- width (optional) :
89+ width:
9090 Window width. Defaults to 1280.
91- height (optional) :
91+ height:
9292 Window height. Defaults to 720.
93- title (optional) :
93+ title:
9494 The title/caption of the window
95- fullscreen (optional) :
95+ fullscreen:
9696 Should this be full screen?
97- resizable (optional) :
97+ resizable:
9898 Can the user resize the window?
99- update_rate (optional) :
99+ update_rate:
100100 How frequently to run the on_update event.
101- draw_rate (optional) :
101+ draw_rate:
102102 How frequently to run the on_draw event. (this is the FPS limit)
103- fixed_rate (optional) :
103+ fixed_rate:
104104 How frequently should the fixed_updates run,
105105 fixed updates will always run at this rate.
106- fixed_frame_cap (optional) :
106+ fixed_frame_cap:
107107 The maximum number of fixed updates that can occur in one update loop.
108108 defaults to infinite. If large lag spikes cause your game to freeze,
109109 try setting this to a smaller number. This may cause your physics to
110110 lag behind temporarily.
111- antialiasing (optional) :
111+ antialiasing:
112112 Use multisampling framebuffer (antialiasing)
113113 samples: Number of samples used in antialiasing (default 4).
114114 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.
116116 This is ``(3, 3)`` by default and can be overridden when using more
117117 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
119119 request the window be placed on it. See `pyglet's window size &
120120 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.
122122 Some styles only work in certain situations. See `pyglet's guide
123123 to window style <pyglet_pg_window_style_>`_ to learn more.
124- visible (optional) :
124+ visible:
125125 Should the window be visible immediately
126- vsync (optional) :
126+ vsync:
127127 Wait for vertical screen refresh before swapping buffer
128128 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
130130 ("context_gc" (default) or "auto")
131- center_window (optional) :
131+ center_window:
132132 If true, will center the window.
133- enable_polling (optional) :
133+ enable_polling:
134134 Enabled input polling capability.
135135 This makes the :py:attr:`keyboard` and :py:attr:`mouse` attributes available for use.
136136
@@ -356,17 +356,17 @@ def clear( # type: ignore # not sure what to do here, BaseWindow.clear is stati
356356 set through :py:attr:`~arcade.Window.background_color`.
357357
358358 Args:
359- color (optional) :
359+ color:
360360 Override the current background color with one of the following:
361361
362362 1. A :py:class:`~arcade.types.Color` instance
363363 2. A 3 or 4-length RGB/RGBA :py:class:`tuple` of byte values (0 to 255)
364364
365- color_normalized (optional) :
365+ color_normalized:
366366 override the current background color using normalized values (0.0 to 1.0).
367367 For example, (1.0, 0.0, 0.0, 1.0) making the window contents red.
368368
369- viewport (optional) :
369+ viewport:
370370 The area of the window to clear. By default, the entire window is cleared.
371371 The viewport format is ``(x, y, width, height)``.
372372 """
@@ -455,19 +455,19 @@ def set_fullscreen(
455455 to the size it was before entering fullscreen mode.
456456
457457 Args:
458- fullscreen (optional) :
458+ fullscreen:
459459 Should we enter or leave fullscreen mode?
460- screen (optional) :
460+ screen:
461461 Which screen should we display on? See :func:`get_screens`
462- mode (optional) :
462+ mode:
463463 The screen will be switched to the given mode. The mode must
464464 have been obtained by enumerating `Screen.get_modes`. If
465465 None, an appropriate mode will be selected from the given
466466 `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`.
471471 """
472472 # fmt: off
473473 super ().set_fullscreen (
@@ -1280,7 +1280,7 @@ class View:
12801280 and a game over screen. Each of these could be a different view.
12811281
12821282 Args:
1283- window (optional) :
1283+ window:
12841284 The window this view is associated with. If None, the current
12851285 window is used. (Normally you don't need to provide this).
12861286 """
@@ -1304,15 +1304,15 @@ def clear(
13041304 set through :py:attr:`arcade.View.background_color`.
13051305
13061306 Args:
1307- color(optional) :
1307+ color:
13081308 override the current background color with one of the following:
13091309
13101310 1. A :py:class:`~arcade.types.Color` instance
13111311 2. A 3 or 4-length RGB/RGBA :py:class:`tuple` of byte values (0 to 255)
1312- color_normalized (optional) :
1312+ color_normalized:
13131313 Override the current background color using normalized values (0.0 to 1.0).
13141314 For example, (1.0, 0.0, 0.0, 1.0) making the window contents red.
1315- viewport (optional) :
1315+ viewport:
13161316 The viewport range to clear
13171317 """
13181318 if color is None and color_normalized is None :
0 commit comments