<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Graphics%3A%3AdrawRect</id>
	<title>Graphics::drawRect - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Graphics%3A%3AdrawRect"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Graphics::drawRect&amp;action=history"/>
	<updated>2026-07-24T20:17:24Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Graphics::drawRect&amp;diff=10239&amp;oldid=prev</id>
		<title>imported&gt;Rootcause: Replaced HTML with template</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Graphics::drawRect&amp;diff=10239&amp;oldid=prev"/>
		<updated>2018-10-26T13:00:39Z</updated>

		<summary type="html">&lt;p&gt;Replaced HTML with template&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Draws a rectangle on the screen.&lt;br /&gt;
&amp;lt;br&amp;gt;*The total number of rectangles to be drawn in one frame is apparently limited to 399.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.game.graphics.drawRect(pos_x, pos_y, width, height, color_r, color_g, color_b, color_a);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;pos_x:&amp;#039;&amp;#039;&amp;#039; float (0.0-1.0, 0.0 is the left edge of the screen, 1.0 is the right edge of the screen)&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;pos_y:&amp;#039;&amp;#039;&amp;#039; float (0.0-1.0, 0.0 is the top edge of the screen, 1.0 is the bottom edge of the screen)&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;width:&amp;#039;&amp;#039;&amp;#039; float (0.0-1.0, 1.0 means the whole screen width)&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;height:&amp;#039;&amp;#039;&amp;#039; float (0.0-1.0, 1.0 means the whole screen height)&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;color_r:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;color_g:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;color_b:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;color_a:&amp;#039;&amp;#039;&amp;#039; int (0-255, 0 means totally transparent, 255 means totally opaque)&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{ClientsideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.events.add(&amp;#039;render&amp;#039;, () =&amp;gt; {&lt;br /&gt;
    if (condition) {&lt;br /&gt;
        mp.game.graphics.drawRect(0.35, 0.4, 0.3, 0.2, 215, 55, 55, 155);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Graphics_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Rootcause</name></author>
	</entry>
</feed>