<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsGradientSetColor?action=history&amp;feed=atom</id>
	<title>DgsGradientSetColor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsGradientSetColor?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGradientSetColor&amp;action=history"/>
	<updated>2026-05-11T06:01:58Z</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=DgsGradientSetColor&amp;diff=78586&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;__NOTOC__  {{Client function}}  This function sets the color of the dgs gradient plugin.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsGradientSetColor( element gradShader, int colorFrom, int colorTo ) &lt;/syntaxhighlight&gt;   ===Required Arguments=== *'''gradShader:''' The dgs gradient you want to set. *'''colorFrom''': Gradient color 1. ( Left side when '''rotation''' is 0 ) *'''colorTo ''': Gradient color 2. ( Right side when '''rotation''' is 0 )  ===Returns=== Return...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGradientSetColor&amp;diff=78586&amp;oldid=prev"/>
		<updated>2023-11-15T02:43:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}}  This function sets the color of the dgs gradient plugin.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsGradientSetColor( element gradShader, int colorFrom, int colorTo ) &amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments=== *&amp;#039;&amp;#039;&amp;#039;gradShader:&amp;#039;&amp;#039;&amp;#039; The dgs gradient you want to set. *&amp;#039;&amp;#039;&amp;#039;colorFrom&amp;#039;&amp;#039;&amp;#039;: Gradient color 1. ( Left side when &amp;#039;&amp;#039;&amp;#039;rotation&amp;#039;&amp;#039;&amp;#039; is 0 ) *&amp;#039;&amp;#039;&amp;#039;colorTo &amp;#039;&amp;#039;&amp;#039;: Gradient color 2. ( Right side when &amp;#039;&amp;#039;&amp;#039;rotation&amp;#039;&amp;#039;&amp;#039; is 0 )  ===Returns=== Return...&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 sets the color of the dgs gradient plugin.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dgsGradientSetColor( element gradShader, int colorFrom, int colorTo )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''gradShader:''' The dgs gradient you want to set.&lt;br /&gt;
*'''colorFrom''': Gradient color 1. ( Left side when '''rotation''' is 0 )&lt;br /&gt;
*'''colorTo ''': Gradient color 2. ( Right side when '''rotation''' is 0 )&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' 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&lt;br /&gt;
&lt;br /&gt;
-- Create A Gradient Plugin&lt;br /&gt;
gradient = DGS:dgsCreateGradient(tocolor(240,10,10,255),tocolor(100,10,10,255),-90)&lt;br /&gt;
&lt;br /&gt;
-- Create A Button&lt;br /&gt;
img = DGS:dgsCreateImage( 0.7, 0.1, 0.2, 0.1, gradient, true )&lt;br /&gt;
&lt;br /&gt;
-- Change Color&lt;br /&gt;
DGS:dgsGradientSetColor(tocolor(10,10,10,255),tocolor(100,10,10,255))&lt;br /&gt;
&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>