<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>i am stuck on step 2</title>
		<link>http://www.allegro.cc/forums/view/618657</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 07 May 2022 18:06:24 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
1. generates an 800x800 initial black window<br /> <br />2. Fills an outermost square of size 800x800 400 using the color green...  (0, 255, 0)<br /> <br />3. Now put a loop around this box drawer.     Each time through the loop, fill a box with sides of 4 pixels less than the prior box drawn    AND  which is a color 2 shades less of green and 2 shades more of red.    Make sure every box is centered at coordinate (400,400)  which is the center of the window.  <br /> <br />4. When the loop reaches a box of side-size 0, stop and pause     (so I can see the beautiful square-gradient you made, till I press a key).     <br />5. Blank the whole window white.<br />Then draw concentric triangles, the outermost on has 3 points:  &lt;0,0&gt;, &lt;800,0&gt;, and &lt;400,800&gt;.    Now loop, going in 4 pixels each time for all 3 corners and shading with the scheme above.  Make sure the lines look parallel.  Stop and pause when you reach the single point in the middle.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (krabby)</author>
		<pubDate>Sat, 30 Apr 2022 04:09:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>square is same size as window? Then just clear screen. What does the 400 mean?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DanielH)</author>
		<pubDate>Sat, 30 Apr 2022 04:33:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>yes is square as windows i assume. they aren&#39;t any other square.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (krabby)</author>
		<pubDate>Sat, 30 Apr 2022 05:57:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><a href="https://liballeg.org/a5docs/trunk/primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sat, 30 Apr 2022 19:54:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>#include &lt;allegro.h&gt;</p><p>int main()<br />{<br />    allegro_init();<br />   <br />    set_gfx_mode(GFX_AUTODETECT_WINDOWED,800,800,0,0);<br />    <br />    rectfill(screen,0,800,0,800, makecol(0,255,0));<br />    <br />    <br />    return 0;<br />    <br />}</p><p>END_OF_MAIN();</p><p>the program closing itself. how can i fix it?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (krabby)</author>
		<pubDate>Thu, 05 May 2022 05:58:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>This will stop the program from closing. Pressing Esc will make it exit. I also fixed up the co-ordinates of the rectfill function for you.</p><div class="source-code"><div class="toolbar"><span class="button numbers"><b>#</b></span><span class="button select">Select</span><span class="button expand">Expand</span></div><div class="inner"><span class="number">  1</span><span class="p">#include &lt;allegro.h&gt;</span>
<span class="number">  2</span>
<span class="number">  3</span><span class="k1">int</span> main<span class="k2">(</span><span class="k2">)</span>
<span class="number">  4</span><span class="k2">{</span>
<span class="number">  5</span>   <a href="http://www.allegro.cc/manual/allegro_init"><span class="a">allegro_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
<span class="number">  6</span>   <a href="http://www.allegro.cc/manual/install_timer"><span class="a">install_timer</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span> <span class="c">// edit: forgot this earlier, I think it's needed. edit2: definitely needed as rest is being used, but possibly also needed for keyboard routines.</span>
<span class="number">  7</span>   <a href="http://www.allegro.cc/manual/install_keyboard"><span class="a">install_keyboard</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
<span class="number">  8</span>
<span class="number">  9</span>   <a href="http://www.allegro.cc/manual/set_gfx_mode"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_AUTODETECT_WINDOWED,<span class="n">800</span>,<span class="n">800</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
<span class="number"> 10</span>
<span class="number"> 11</span>   <a href="http://www.allegro.cc/manual/rectfill"><span class="a">rectfill</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen"><span class="a">screen</span></a>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">800</span>,<span class="n">800</span>, <a href="http://www.allegro.cc/manual/makecol"><span class="a">makecol</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">255</span>,<span class="n">0</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
<span class="number"> 12</span>
<span class="number"> 13</span>   <span class="k1">while</span> <span class="k2">(</span><span class="k3">!</span><a href="http://www.allegro.cc/manual/key"><span class="a">key</span></a><span class="k2">[</span>KEY_ESC<span class="k2">]</span><span class="k2">)</span> <span class="k2">{</span>
<span class="number"> 14</span>      <a href="http://www.allegro.cc/manual/rest"><span class="a">rest</span></a><span class="k2">(</span><span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
<span class="number"> 15</span>   <span class="k2">}</span>
<span class="number"> 16</span>
<span class="number"> 17</span>   <span class="k1">return</span> <span class="n">0</span><span class="k2">;</span>
<span class="number"> 18</span>
<span class="number"> 19</span><span class="k2">}</span>
<span class="number"> 20</span>
<span class="number"> 21</span><a href="http://www.allegro.cc/manual/END_OF_MAIN"><span class="a">END_OF_MAIN</span></a><span class="k2">(</span><span class="k2">)</span>
</div></div><p>

By the way, unless you have a very good reason (eg. targeting older hardware), you&#39;d be better learning Allegro 5 than Allegro 4, which is no longer actively developed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Thu, 05 May 2022 10:57:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>krabby, did you find out about Allegro recently? Where you found it, did it suggest to use Allegro 4?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Thu, 05 May 2022 20:45:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>please. please. stop using allegro 4.</p><p>It was designed <b>*for DOS</b>*. (with roots going back to the <b>*Amiga</b>*)</p><p>Allegro 5, is still C based, and a thousand times better.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Chris Katko)</author>
		<pubDate>Fri, 06 May 2022 05:52:27 +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/618657/1052265#target">Chris Katko</a> said:</div><div class="quote"><p> It was designed <b>for DOS</b>. (with roots going back to the <b>Amiga</b>)</p></div></div><p>I believe it was actually the Atari ST, not the Amiga.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Fri, 06 May 2022 07:49:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Clearly this is homework, and his professor is assigning allegro 4.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Fri, 06 May 2022 19:57:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>oof. </p><p><a href="https://www.memecreator.org/static/images/memes/5239042.jpg">https://www.memecreator.org/static/images/memes/5239042.jpg</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Chris Katko)</author>
		<pubDate>Sat, 07 May 2022 00:11:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><span class="remote-thumbnail"><span class="json">{"name":"5239042.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/f\/df99f7688267bbefaa703ab1d991dba4.jpg","w":375,"h":240,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/f\/df99f7688267bbefaa703ab1d991dba4"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/d/f/df99f7688267bbefaa703ab1d991dba4-240.jpg" alt="5239042.jpg" width="240" height="153" /></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sat, 07 May 2022 18:06:24 +0000</pubDate>
	</item>
</rss>
