|
4 | 4 | <head>
|
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6 | 6 | <title>window_set_colour</title>
|
7 |
| - <meta name="generator" content="Adobe RoboHelp 2020" /> |
| 7 | + <meta name="generator" content="Adobe RoboHelp 2022" /> |
8 | 8 | <link rel="stylesheet" href="../../../../assets/css/default.css" type="text/css" />
|
9 | 9 | <script src="../../../../assets/scripts/main_script.js" type="module"></script>
|
10 | 10 | <meta name="rh-authors" content="Mark Alexander" />
|
|
14 | 14 | </head>
|
15 | 15 | <body>
|
16 | 16 | <!--<div class="body-scroll" style="top: 150px;">-->
|
17 |
| - <h1>window_set_colour</h1> |
18 |
| - <p>This function can set the background colour of the game window. This colour represents that which will be used for those areas of the game window that are not occupied by any views. The following image illustrates this:</p> |
19 |
| - <p><img alt="Window colour example" class="center" src="../../../../assets/Images/Scripting_Reference/GML/Reference/Cameras_Display/window_set_colour.png" />The above image has two views with two view ports, each one drawn at different positions. This stretches the game window to accommodate both ports and uses the window colour to colour the background where no view is shown.</p> |
| 17 | + <h1><span data-field="title" data-format="default">window_set_colour</span></h1> |
| 18 | + <p>This function sets the background colour of the game window.</p> |
| 19 | + <p>This colour represents that which will be used for those areas of the game window that are not occupied by any views. The following image illustrates this:</p> |
| 20 | + <p><img alt="Window colour example" class="center" src="../../../../assets/Images/Scripting_Reference/GML/Reference/Cameras_Display/window_set_colour.png" />The above image has two views with two view ports, each one drawn at a different position. This stretches the game window to accommodate both ports and uses the window colour to colour the background where no view is shown.</p> |
20 | 21 | <p> </p>
|
21 | 22 | <h4>Syntax:</h4>
|
22 |
| - <p class="code">window_set_colour(colour);</p> |
| 23 | + <p class="code"><span data-field="title" data-format="default">window_set_colour</span>(colour);</p> |
23 | 24 | <table>
|
24 | 25 | <tbody>
|
25 | 26 | <tr>
|
26 |
| - <th>Argument</th><th>Type</th> |
| 27 | + <th>Argument</th> |
| 28 | + <th>Type</th> |
27 | 29 | <th>Description</th>
|
28 |
| - </tr> |
| 30 | + </tr> |
29 | 31 | <tr>
|
30 |
| - <td>colour</td><td><span data-keyref="Type_Constant_Colour"></span></td> |
| 32 | + <td>colour</td> |
| 33 | + <td><span data-keyref="Type_Constant_Colour"><a href="../../Drawing/Colour_And_Alpha/Colour_And_Alpha.htm" target="_blank">Colour</a></span></td> |
31 | 34 | <td>The colour to set the region.</td>
|
32 |
| - </tr> |
| 35 | + </tr> |
33 | 36 | </tbody>
|
34 | 37 | </table>
|
35 | 38 | <p> </p>
|
36 | 39 | <h4>Returns:</h4>
|
37 |
| - <p class="code"><span data-keyref="Type_Void"></span></p> |
| 40 | + <p class="code"><span data-keyref="Type_Void">N/A</span></p> |
38 | 41 | <p> </p>
|
39 | 42 | <h4>Example:</h4>
|
40 |
| - <p class="code">if (window_get_colour() != c_black) <br /> |
| 43 | + <p class="code">if (window_get_colour() != c_black)<br /> |
41 | 44 | {<br />
|
42 |
| - window_set_colour(c_black);<br /> |
| 45 | + <span data-field="title" data-format="default">window_set_colour</span>(c_black);<br /> |
43 | 46 | }</p>
|
44 | 47 | <p>The above code will check the window colour to see if it is set as black or not, and if it is not it sets it to black.</p>
|
45 | 48 | <p> </p>
|
46 | 49 | <p> </p>
|
47 |
| - <p> </p> |
48 | 50 | <div class="footer">
|
49 | 51 | <div class="buttons">
|
50 | 52 | <div class="clear">
|
51 |
| - <div style="float:left">Back: <a href="../The_Game_Window/The_Game_Window.htm">The Game Window</a></div> |
52 |
| - <div style="float:right">Next: <a href="../The_Game_Window/window_set_fullscreen.htm">window_set_fullscreen</a></div> |
| 53 | + <div style="float:left">Back: <a data-xref="{title}" href="The_Game_Window.htm">The Game Window</a></div> |
| 54 | + <div style="float:right">Next: <a data-xref="{title}" href="window_set_fullscreen.htm">window_set_fullscreen</a></div> |
53 | 55 | </div>
|
54 | 56 | </div>
|
55 |
| - <h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2021 All Rights Reserved</span></h5> |
| 57 | + <h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5> |
56 | 58 | </div>
|
57 | 59 | <!-- KEYWORDS
|
58 | 60 | window_set_colour
|
|
0 commit comments