<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Flex 3 Truchet Tiling</title>
	<atom:link href="http://renaun.com/blog/2008/03/04/252/feed/" rel="self" type="application/rss+xml" />
	<link>http://renaun.com/blog/2008/03/04/252/</link>
	<description>Informtation on Flex, Flash, ColdFusion, and general RIA web develoment.</description>
	<pubDate>Sat, 13 Mar 2010 00:51:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Renaun Erickson</title>
		<link>http://renaun.com/blog/2008/03/04/252/comment-page-1/#comment-360284</link>
		<dc:creator>Renaun Erickson</dc:creator>
		<pubDate>Tue, 30 Nov 2010 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://renaun.com/blog/2008/03/04/252/#comment-360284</guid>
		<description>The random arc one takes one of the two arcs and defines a random number of smaller arcs, then for each of the smaller arc it randomizes the value that defines the curve points.

var parts:int = int(Math.random() * tileSize / Math.min(tileSize, 8)) + 1;
        for (var i:int = 1;i &lt;= parts; i++)
        {
            var pointX:int = leftX + (tileSize/2*i/parts);
            var pointY:int = leftY + (tileSize/2*i/parts*upDown);
            var arcX:int = int(Math.random() * (Math.max(lastX, pointX) - Math.min(lastX, pointX))) + Math.min(lastX, pointX);
            var arcY:int = int(Math.random() * (Math.max(lastY, pointY) - Math.min(lastY, pointY))) + Math.min(lastY, pointY);
            graphics.curveTo(arcX, arcY, pointX, pointY);
            lastX = pointX;
            lastY = pointY;
        }</description>
		<content:encoded><![CDATA[<p>The random arc one takes one of the two arcs and defines a random number of smaller arcs, then for each of the smaller arc it randomizes the value that defines the curve points.</p>
<p>var parts:int = int(Math.random() * tileSize / Math.min(tileSize, 8)) + 1;<br />
        for (var i:int = 1;i <= parts; i++)<br />
        {<br />
            var pointX:int = leftX + (tileSize/2*i/parts);<br />
            var pointY:int = leftY + (tileSize/2*i/parts*upDown);<br />
            var arcX:int = int(Math.random() * (Math.max(lastX, pointX) - Math.min(lastX, pointX))) + Math.min(lastX, pointX);<br />
            var arcY:int = int(Math.random() * (Math.max(lastY, pointY) - Math.min(lastY, pointY))) + Math.min(lastY, pointY);<br />
            graphics.curveTo(arcX, arcY, pointX, pointY);<br />
            lastX = pointX;<br />
            lastY = pointY;<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars</title>
		<link>http://renaun.com/blog/2008/03/04/252/comment-page-1/#comment-360245</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://renaun.com/blog/2008/03/04/252/#comment-360245</guid>
		<description>Neat!
What is the nature of the Random Arc setting? I thought at first it was just a random mixture of circular arcs and straight lines, then I thought it was hand-drawn lines, but it sort of looks like arcs at different size levels, fractal-like.

Lars</description>
		<content:encoded><![CDATA[<p>Neat!<br />
What is the nature of the Random Arc setting? I thought at first it was just a random mixture of circular arcs and straight lines, then I thought it was hand-drawn lines, but it sort of looks like arcs at different size levels, fractal-like.</p>
<p>Lars</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phillip Kerman</title>
		<link>http://renaun.com/blog/2008/03/04/252/comment-page-1/#comment-339216</link>
		<dc:creator>Phillip Kerman</dc:creator>
		<pubDate>Fri, 30 Nov 2001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://renaun.com/blog/2008/03/04/252/#comment-339216</guid>
		<description>Neat O!  Nice job.</description>
		<content:encoded><![CDATA[<p>Neat O!  Nice job.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
