<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsCircleGetColor?action=history&amp;feed=atom</id>
	<title>DgsCircleGetColor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsCircleGetColor?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCircleGetColor&amp;action=history"/>
	<updated>2026-05-16T12:11:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCircleGetColor&amp;diff=77574&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;__NOTOC__  {{Client function}}  This function gets the color of the dgs circle.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; int dgsCircleGetColor( element circle ) &lt;/syntaxhighlight&gt;   ===Required Arguments=== *'''rndRect:''' A dgs circle element.  ===Returns=== Returns an ''int'' value of the color if successful, ''false'' otherwise.  ==Example==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; DGS = exports.dgs --get exported functions from dgs  function fromcolor(int)  --from color 	local...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCircleGetColor&amp;diff=77574&amp;oldid=prev"/>
		<updated>2023-09-03T03:00:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}}  This function gets the color of the dgs circle.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int dgsCircleGetColor( element circle ) &amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments=== *&amp;#039;&amp;#039;&amp;#039;rndRect:&amp;#039;&amp;#039;&amp;#039; A dgs circle element.  ===Returns=== Returns an &amp;#039;&amp;#039;int&amp;#039;&amp;#039; value of the color if successful, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise.  ==Example==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; DGS = exports.dgs --get exported functions from dgs  function fromcolor(int)  --from color 	local...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
&lt;br /&gt;
This function gets the color of the dgs circle.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int dgsCircleGetColor( element circle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''rndRect:''' A dgs circle element.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an ''int'' value of the color if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs --get exported functions from dgs&lt;br /&gt;
&lt;br /&gt;
function fromcolor(int)  --from color&lt;br /&gt;
	local a,r,g,b&lt;br /&gt;
	b = int%256&lt;br /&gt;
	local int = (int-b)/256&lt;br /&gt;
	g = int%256&lt;br /&gt;
	local int = (int-g)/256&lt;br /&gt;
	r = int%256&lt;br /&gt;
	local int = (int-r)/256&lt;br /&gt;
	a = int%256&lt;br /&gt;
	return r,g,b,a&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local c = DGS:dgsCreateCircle(0.5,0.3)&lt;br /&gt;
local img = DGS:dgsCreateImage(300,200,200,200,c,false)&lt;br /&gt;
local r,g,b,a = fromcolor(DGS:dgsCircleGetColor(rndRect))&lt;br /&gt;
outputChatBox(&amp;quot;R:&amp;quot;..r..&amp;quot;;G:&amp;quot;..g..&amp;quot;;B:&amp;quot;..b..&amp;quot;;A:&amp;quot;..a..&amp;quot;;&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>