<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chris Herring &#187; drawing</title>
	<atom:link href="http://blog.chrisherring.co.uk/tag/drawing/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chrisherring.co.uk</link>
	<description>Interaction, development and everything in between...</description>
	<lastBuildDate>Sun, 16 May 2010 16:30:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>lineTo Art</title>
		<link>http://blog.chrisherring.co.uk/2009/07/22/lineto-art/</link>
		<comments>http://blog.chrisherring.co.uk/2009/07/22/lineto-art/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 21:45:11 +0000</pubDate>
		<dc:creator>blog.chrisherring.co.uk</dc:creator>
				<category><![CDATA[Experiments]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[drawing]]></category>

		<guid isPermaLink="false">http://blog.chrisherring.co.uk/?p=450</guid>
		<description><![CDATA[Odosketch has been around for a few days now, and has been recently made S.O.T.D by FWA. Its a great little drawing tool where people are creating really impressive sketches, and the best bit being you can watch their drawings play back. I thought I&#8217;ll have a little attempt at trying to recreate one of [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://sketch.odopod.com/" target="_blank">Odosketch</a> has been around for a few days now, and has been recently made S.O.T.D by FWA. Its a great little drawing tool where people are creating really <a href="http://sketch.odopod.com/sketches/60743" target="_blank">impressive sketches</a>, and the best bit being you can watch their drawings play back. I thought I&#8217;ll have a little attempt at trying to recreate one of their brushes in Flash using Actionscript 3</p>
<p>I found the most important thing to do is store the previous x and y positions of shape, so the next time the user moves the mouse, the shape being drawn starts from the last shape added. Coupled with a basic acceleration calculation, alpha channel + canvas texture and you are close to what has been produced for Odosketch. Conqusently some of the shapes created when your <span>graphics.lineTo </span>calculations are slightly out, produce abstract results like the following.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.chrisherring.co.uk/wp-content/uploads/images/abstractArt.jpg" alt="AbstractArt" width="548" height="400" /></p>
<p>Click below in order to activate the Flash movie, and then click again to change brush colour.</p>
<p id="LineToArt" style="margin-left:15px;">Flash is displayed here</p>
<p>Always find the following line of actionscript code to be quite funny, like when do you need a random colour other then situations like these!?!</p>
<p><code>Math.random()*0xFFFFFF;</code><br />
<script src="http://blog.chrisherring.co.uk/wp-content/js/swfobject.js" type="text/javascript"></script> <script type="text/javascript"><!--
var s2 = new SWFObject('http://blog.chrisherring.co.uk/wp-content/swf/LineToArt.swf','player','550','400','9');
s2.write('LineToArt');
// --></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chrisherring.co.uk/2009/07/22/lineto-art/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
