<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Strange artifacts...</title>
		<link>http://www.allegro.cc/forums/view/608774</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 09 Nov 2011 01:47:21 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I noticed that there is a Python port, so I decided to test it out(since we&#39;ve just finished our Python course at uni).</p><p>I made a little Pong game, but there are some rendering issues... When drawing the paddles, there seems to some tearing with the blending. Here&#39;s my paddle drawing code:
</p><div class="source-code snippet"><div class="inner"><pre>def draw<span class="k2">(</span>self<span class="k2">)</span><span class="k2">:</span>
        <span class="p"># Fill</span>
        <a href="http://www.allegro.cc/manual/al_draw_filled_rounded_rectangle"><span class="a">al_draw_filled_rounded_rectangle</span></a><span class="k2">(</span>self.x, self.y, self.x <span class="k3">+</span> self.w, self.y <span class="k3">+</span> self.h, <span class="n">6</span>, <span class="n">6</span>, self.color<span class="k2">)</span>
        <span class="p"># Highlight</span>
        <a href="http://www.allegro.cc/manual/al_draw_filled_rounded_rectangle"><span class="a">al_draw_filled_rounded_rectangle</span></a><span class="k2">(</span>self.x<span class="k3">+</span><span class="n">2</span>, self.y<span class="k3">+</span><span class="n">2</span>, self.x <span class="k3">+</span> self.w<span class="k3">/</span><span class="n">2</span>, self.y <span class="k3">+</span> self.h-5, <span class="n">6</span>, <span class="n">6</span>, <a href="http://www.allegro.cc/manual/al_map_rgba_f"><span class="a">al_map_rgba_f</span></a><span class="k2">(</span><span class="n">0</span>.<span class="n">2</span>,<span class="n">0</span>.<span class="n">2</span>,<span class="n">0</span>.<span class="n">2</span>,<span class="n">0</span>.<span class="n">2</span><span class="k2">)</span><span class="k2">)</span>
</pre></div></div><p>
Here&#39;s my current output:<br /><span class="remote-thumbnail"><span class="json">{"name":"605076","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/8\/a83044138b031d1b775b0f0c6f3f844e.png","w":800,"h":600,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/8\/a83044138b031d1b775b0f0c6f3f844e"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/a/8/a83044138b031d1b775b0f0c6f3f844e-240.jpg" alt="605076" width="240" height="180" /></span></p><p>Any ideas why this is happening?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (J-Gamer)</author>
		<pubDate>Wed, 09 Nov 2011 00:56:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The width of your rounded rectangle is smaller than the sum of the radii of the rounds. Here&#39;s a blowup of what is happening:</p><p><span class="remote-thumbnail"><span class="json">{"name":"605078","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/9\/e9ab6bf8d8ebbcaf59133c3e206e3b2c.png","w":404,"h":330,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/9\/e9ab6bf8d8ebbcaf59133c3e206e3b2c"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/e/9/e9ab6bf8d8ebbcaf59133c3e206e3b2c-240.jpg" alt="605078" width="240" height="196" /></span></p><p>I&#39;d just decrease the radius of the rounds (to like 5 or 4 or something).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Wed, 09 Nov 2011 01:33:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks, that fixed it!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (J-Gamer)</author>
		<pubDate>Wed, 09 Nov 2011 01:47:21 +0000</pubDate>
	</item>
</rss>
