<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>al_map_rgb()</title>
		<link>http://www.allegro.cc/forums/view/611696</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 26 Dec 2012 23:51:46 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello all,</p><p>  I am going through the basic tutorials of allegro 5, so to change the display color there is function al_clear_to_display(), which takes the argument al_map_rgb(0,0,0).</p><p>  In the Tutorial it is well explained that 0,0,0 are the values of RED, GREEN &amp; BLUE . So in that case if we change r,g,b values we should have a change of colour in the display.</p><p>  But that is not happening when I try with different values. The display remains Black irrespective of the values(r,g,b).</p><p>  Any reason for this problem?</p><p>You can find the code at &quot;<a href="http://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Displays">http://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Displays</a>&quot;</p><p>Thank you.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (sai pavan boddu)</author>
		<pubDate>Tue, 25 Dec 2012 23:16:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Have you flipped the display after clearing the screen?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Tue, 25 Dec 2012 23:18:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
</p><div class="source-code snippet"><div class="inner"><pre>   <a href="http://www.allegro.cc/manual/al_clear_to_color"><span class="a">al_clear_to_color</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
 
<div class="highlight">   <a href="http://www.allegro.cc/manual/al_flip_display"><span class="a">al_flip_display</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></div>
 
   <a href="http://www.allegro.cc/manual/al_rest"><span class="a">al_rest</span></a><span class="k2">(</span><span class="n">10</span>.<span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 26 Dec 2012 01:09:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Edgar: given he&#39;s changed it, there no guarantee that&#39;s still there.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Wed, 26 Dec 2012 01:16:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>With which values are you trying? those are <tt>int</tt> values ranging from 0 to 255.</p><p>just sayin&#39;
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (pkrcel)</author>
		<pubDate>Wed, 26 Dec 2012 03:04:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><b>Edgar &amp; Thomas :</b> Yes I had flipped the dispaly</p><p><b>pkrcel :</b> I gave inputs like (2,5,5)&amp;(28,32,56)</p><p> <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /> Does that problem any thing to do with, static and dynamic linking?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (sai pavan boddu)</author>
		<pubDate>Wed, 26 Dec 2012 21:21:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p> pkrcel : I gave inputs like (2,5,5)&amp;(28,32,56)</p></div></div><p>The first set of values will give a colour that is most likely indistinguishable from black.  The second set should definitely be noticeably different though.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/611696/973118#target">sai pavan boddu</a> said:</div><div class="quote"><p> Does that problem any thing to do with, static and dynamic linking?</p></div></div><p>No.</p><p>Post the full final code that exhibits the problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Wed, 26 Dec 2012 21:30:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Oh! Brilliant , that worked for even higher values than what I mentioned .
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (sai pavan boddu)</author>
		<pubDate>Wed, 26 Dec 2012 21:47:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>White = 255,255,255</p><p>Any values below 48 are going to be difficult to notice, especially if there&#39;s no comparison.</p><p>There&#39;s also floating-point versions of the map_rgb commands that take values from 0.0 to 1.0 instead of 0 to 255.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kris Asick)</author>
		<pubDate>Wed, 26 Dec 2012 21:53:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>to me also the 2nd set of values gives a color VEEEERY close to black.</p><p>please try with something like magenta (255, 0, 255) and tell us what you get, please.</p><p>EDIT: missed that it was already sorted.....well CVD.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (pkrcel)</author>
		<pubDate>Wed, 26 Dec 2012 23:47:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/611696/973127#target">pkrcel</a> said:</div><div class="quote"><p> to me also the 2nd set of values gives a color VEEEERY close to black.</p></div></div><p>It could be your monitor settings.  When I ran it, there was a console window behind that was black so the difference was pretty clear.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Wed, 26 Dec 2012 23:50:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><span class="remote-thumbnail"><span class="json">{"name":"brightness_contrast_setting.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/c\/ac68cc994b8fdb9bfabe20ad908132fc.png","w":720,"h":540,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/c\/ac68cc994b8fdb9bfabe20ad908132fc"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/a/c/ac68cc994b8fdb9bfabe20ad908132fc-240.jpg" alt="brightness_contrast_setting.png" width="240" height="180" /></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Wed, 26 Dec 2012 23:51:46 +0000</pubDate>
	</item>
</rss>
