<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>THOMAS KRÄFTNER</title>
	<atom:link href="http://blog.kraftner.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kraftner.com</link>
	<description>The beauty behind... Flash it up!</description>
	<pubDate>Mon, 11 Aug 2008 11:31:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/at/</creativeCommons:license>
		<item>
		<title>ExtendScript - Use Flash in Photshop, Illustrator and InDesign</title>
		<link>http://blog.kraftner.com/2008/07/07/extendscript-use-flash-in-photshop-illustrator-and-indesign/</link>
		<comments>http://blog.kraftner.com/2008/07/07/extendscript-use-flash-in-photshop-illustrator-and-indesign/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 14:47:21 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Generative Art]]></category>

		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Extend]]></category>

		<category><![CDATA[ExtendScript]]></category>

		<category><![CDATA[Illustrator]]></category>

		<category><![CDATA[Indesign]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://blog.kraftner.com/?p=24</guid>
		<description><![CDATA[While doing some general research on which technologies are good to use if you're doing generative artwork I stumbled upon ExtendScript. It is an extended implementation of JavaScript which can be used to control and automate the major Adobe Creative Suite Applications beeing Photoshop, Illustrator and InDesign. Since CS3 Flash can be used to build [...]]]></description>
			<content:encoded><![CDATA[<p>While doing some general research on which technologies are good to use if you're doing generative artwork I stumbled upon ExtendScript. It is an extended implementation of JavaScript which can be used to control and automate the major Adobe Creative Suite Applications beeing Photoshop, Illustrator and InDesign. Since CS3 Flash can be used to build the GUI for using ExtendScript in these Applications.</p>
<p>Just to start here is a great tutorial how you can get this up and running using Flex, but it's generally the same using just plain Actionscript in combination with ExternalInterface. <a href="http://scriptplayground.com/tutorials/pss/Developing-Flash-Windows-for-Photoshop-Using-Flex/" onclick="pageTracker._trackPageview('/outgoing/scriptplayground.com/tutorials/pss/Developing-Flash-Windows-for-Photoshop-Using-Flex/?referer=');">Developing Flash Windows for Photoshop Using Flex</a></p>
<p>Oh and here you can find the Documentation for ExtendScript:</p>
<p><a href="http://www.adobe.com/devnet/photoshop/scripting/" onclick="pageTracker._trackPageview('/outgoing/www.adobe.com/devnet/photoshop/scripting/?referer=');">http://www.adobe.com/devnet/photoshop/scripting/</a><br />
<a href="http://www.adobe.com/devnet/illustrator/scripting/" onclick="pageTracker._trackPageview('/outgoing/www.adobe.com/devnet/illustrator/scripting/?referer=');">http://www.adobe.com/devnet/illustrator/scripting/</a></p>
<p>So why am I so amazed about this possibility? Even though by now I've just read the docs and didn't try it myself I see a great possibility here:</p>
<h1>AS Drawing API-&gt;PS output?</h1>
<p>What if you could just script using normal, native Flash Actionscript Drawing API but send the output to Photoshop or Illustrator?</p>
<p>See the benefits and possibilities:</p>
<ul>
<li>Simple output as *.psd or *.ai file for further editing, compositing, exporting,...</li>
<li>Use the powerful Photoshop and Illustrator Tools directly from Flash - no need for replicating behavior with AS Classes.</li>
<li>Break the 2880px barrier by just using Flash as a scaled down Preview Window - the real output is in whatever size you need directly in Photoshop.</li>
<li>I wonder what else you might come up with...</li>
</ul>
<p>One major thing I'm not too sure about yet is performance. So there is need for further research. If I missed some Infos about this please let me know.</p>
<p>Otherwise check back soon as I will publish any result here soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kraftner.com/2008/07/07/extendscript-use-flash-in-photshop-illustrator-and-indesign/feed/</wfw:commentRss>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/at/</creativeCommons:license>
	</item>
		<item>
		<title>Magic Moments - net.culture.space</title>
		<link>http://blog.kraftner.com/2008/07/02/magic-moments-netculturespace/</link>
		<comments>http://blog.kraftner.com/2008/07/02/magic-moments-netculturespace/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 09:41:02 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
		
		<category><![CDATA[Art]]></category>

		<category><![CDATA[Ars Electronica]]></category>

		<category><![CDATA[Godmode]]></category>

		<category><![CDATA[Magic Moments]]></category>

		<category><![CDATA[net.culture.space]]></category>

		<category><![CDATA[Tim Knapen]]></category>

		<guid isPermaLink="false">http://blog.kraftner.com/?p=23</guid>
		<description><![CDATA[Yesterday I was at a wonderful exhibition opening at the net.culture.space which is a branch of the well known Ars Electronica Center.
The exhibition is called "Magic Moments" and aims to break the barriers between the real and the digital world. At beginning they were quoting Arthur C. Clarke which really brings it to the point: [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I was at a wonderful exhibition opening at the <a onclick="pageTracker._trackPageview('/outgoing/www.netculturespace.at/?referer=');pageTracker._trackPageview('/outgoing/www.netculturespace.at/?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.netculturespace.at/?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.netculturespace.at/?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.netculturespace.at/?referer=http://blog.kraftner.com/wp-admin/post-new.php');" href="http://www.netculturespace.at/">net.culture.space</a> which is a branch of the well known <a onclick="pageTracker._trackPageview('/outgoing/www.aec.at/en/center/index.asp?referer=');pageTracker._trackPageview('/outgoing/www.aec.at/en/center/index.asp?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.aec.at/en/center/index.asp?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.aec.at/en/center/index.asp?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.aec.at/en/center/index.asp?referer=http://blog.kraftner.com/wp-admin/post-new.php');" href="http://www.aec.at/en/center/index.asp">Ars Electronica Center</a>.</p>
<p>The exhibition is called "Magic Moments" and aims to break the barriers between the real and the digital world. At beginning they were quoting <a onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Arthur_C._Clarke?referer=');pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Arthur_C._Clarke?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Arthur_C._Clarke?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Arthur_C._Clarke?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Arthur_C._Clarke?referer=http://blog.kraftner.com/wp-admin/post-new.php');" href="http://en.wikipedia.org/wiki/Arthur_C._Clarke">Arthur C. Clarke</a> which really brings it to the point: <a onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Clarke_27s_three_laws?referer=');pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Clarke_27s_three_laws?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Clarke_27s_three_laws?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Clarke_27s_three_laws?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Clarke_27s_three_laws?referer=http://blog.kraftner.com/wp-admin/post-new.php');" href="http://en.wikipedia.org/wiki/Clarke%27s_three_laws">"Any sufficiently advanced technology is indistinguishable from magic."</a></p>
<p>There was a lot of fantastic stuff, to see more go to <a onclick="pageTracker._trackPageview('/outgoing/flickr.com/photos/celebremus/sets/72157605932159298/?referer=');pageTracker._trackPageview('/outgoing/flickr.com/photos/celebremus/sets/72157605932159298/?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/flickr.com/photos/celebremus/sets/72157605932159298/?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/flickr.com/photos/celebremus/sets/72157605932159298/?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/flickr.com/photos/celebremus/sets/72157605932159298/?referer=http://blog.kraftner.com/wp-admin/post-new.php');" href="http://flickr.com/photos/celebremus/sets/72157605932159298/">flickr</a> or <a onclick="pageTracker._trackPageview('/outgoing/www.netculturespace.at/ausstellungen/ausblick?referer=');pageTracker._trackPageview('/outgoing/www.netculturespace.at/ausstellungen/ausblick?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.netculturespace.at/ausstellungen/ausblick?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.netculturespace.at/ausstellungen/ausblick?referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.netculturespace.at/ausstellungen/ausblick?referer=http://blog.kraftner.com/wp-admin/post-new.php');" href="http://www.netculturespace.at/ausstellungen/ausblick">http://www.netculturespace.at/ausstellungen/ausblick.</a></p>
<p>Especially <a onclick="pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?project=37&amp;referer=');pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?project=37&amp;referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?project=37&amp;referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?project=37&amp;referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?project=37&amp;referer=http://blog.kraftner.com/wp-admin/post-new.php');" href="http://www.pacesetter2000.be/tk/v2/?project=37">"Godmode"</a> by <a onclick="pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?page_id=1&amp;referer=');pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?page_id=1&amp;referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?page_id=1&amp;referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?page_id=1&amp;referer=http://blog.kraftner.com/wp-admin/post.php?action=edit&amp;post=23&amp;message=4');pageTracker._trackPageview('/outgoing/www.pacesetter2000.be/tk/v2/?page_id=1&amp;referer=http://blog.kraftner.com/wp-admin/post-new.php');" href="http://www.pacesetter2000.be/tk/v2/?page_id=1">Tim Knapen</a> was very fascinating. He hacked a copier so if you scanned drawn characters they started to move and animate along the ceiling. The wondeful thing was that it needed no explanation, it just worked. Draw it, press the "copy-Button" and watch your drawing live!</p>
<p><img src="http://farm4.static.flickr.com/3017/2630027829_8ec9088f9f.jpg?v=0" alt="" width="500" height="333" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kraftner.com/2008/07/02/magic-moments-netculturespace/feed/</wfw:commentRss>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/at/</creativeCommons:license>
	</item>
		<item>
		<title>Firefly</title>
		<link>http://blog.kraftner.com/2008/05/14/firefly/</link>
		<comments>http://blog.kraftner.com/2008/05/14/firefly/#comments</comments>
		<pubDate>Tue, 13 May 2008 23:37:24 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Art]]></category>

		<category><![CDATA[Generative Art]]></category>

		<category><![CDATA[Firefly]]></category>

		<guid isPermaLink="false">http://blog.kraftner.com/2008/05/14/firefly/</guid>
		<description><![CDATA[The last days I've been working on a file which has turned out to be quite nice.
The initial thought was to draw a set of connected lines randomly moving across the canvas with predefined angles.
I constantly added new features like colors, collision detection, line thickness, random abortion of line drawing,...
Just have a look at the [...]]]></description>
			<content:encoded><![CDATA[<p>The last days I've been working on a file which has turned out to be quite nice.</p>
<p>The initial thought was to draw a set of connected lines randomly moving across the canvas with predefined angles.</p>
<p>I constantly added new features like colors, collision detection, line thickness, random abortion of line drawing,...</p>
<p>Just have a look at the images on <a href="http://flickr.com/photos/celebremus/sets/72157604826022494/" onclick="pageTracker._trackPageview('/outgoing/flickr.com/photos/celebremus/sets/72157604826022494/?referer=');">flickr</a>.</p>
<p>I may publish the source some day but for now there's still a lot of code cleanup to do.</p>
<p><a href="http://www.flickr.com/photos/celebremus/2490660736/" onclick="pageTracker._trackPageview('/outgoing/www.flickr.com/photos/celebremus/2490660736/?referer=');"><img src="http://farm3.static.flickr.com/2223/2490660736_7664f71451.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kraftner.com/2008/05/14/firefly/feed/</wfw:commentRss>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/at/</creativeCommons:license>
	</item>
		<item>
		<title>Malewitsch</title>
		<link>http://blog.kraftner.com/2008/05/07/malewitsch/</link>
		<comments>http://blog.kraftner.com/2008/05/07/malewitsch/#comments</comments>
		<pubDate>Wed, 07 May 2008 01:00:12 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Art]]></category>

		<category><![CDATA[Generative Art]]></category>

		<category><![CDATA[collision-detection]]></category>

		<category><![CDATA[malewitsch]]></category>

		<guid isPermaLink="false">http://blog.kraftner.com/?p=17</guid>
		<description><![CDATA[So still inspired by the same exhibition now this work started from Malewitsch's work Suprematist Composition: Airplane Flying but as I continued to work on it it grew bigger and bigger...
Click on the Stage - Just play a bit if you like. Or scroll down for a more detailed description on the adjustable parameters and [...]]]></description>
			<content:encoded><![CDATA[<p>So still inspired by the same exhibition now this work started from Malewitsch's work <em>Suprematist Composition: Airplane Flying</em> but as I continued to work on it it grew bigger and bigger...</p>
<p>Click on the Stage - Just play a bit if you like. Or scroll down for a more detailed description on the adjustable parameters and how it works.</p>
<p>Check my flickr account (widget on the right) for nice stuff I created with this tool.</p>

<object	type="application/x-shockwave-flash"
			data="http://blog.kraftner.com/wp-content/uploads/2008/05/malewitsch.swf"
			width="500"
			height="500">
	<param name="movie" value="http://blog.kraftner.com/wp-content/uploads/2008/05/malewitsch.swf" />
</object>
<p><em>Controls on/off</em> - Show/Hide the whole Options panel</p>
<p><em>Clear</em> - Clears the Stage</p>
<p><em>Overlap</em> - Allow/Disallow overlapping of Shapes</p>
<p><em>Width/Height/Rotation</em> - Adjust Width/Height/Rotation of the Shapes</p>
<p><em>Dirt </em>- Decide how much the Rectangle should be transformed</p>
<p><em>Random Malewitsch Colors</em> - Stick to the colors from <em>Suprematist Composition: Airplane Flying </em>being Red, Blue, Yellow and Black</p>
<p><em>Random Colors</em> - Randomly pick a color with every click</p>
<p><em>Choose Color</em> - Pick a color yourself by entering a <a title="Hex Code" href="http://en.wikipedia.org/wiki/Web_colours#Hex_triplet" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Web_colours_Hex_triplet?referer=');">HEX Code</a></p>
<p>Now just some words on the Script itself.</p>
<p>First some tribute to stuff I used:</p>
<p>Again Grant Skinners awesome <a href="http://www.gskinner.com/blog/archives/2008/01/source_code_see.html" onclick="pageTracker._trackPageview('/outgoing/www.gskinner.com/blog/archives/2008/01/source_code_see.html?referer=');">seeded Random Class</a>.</p>
<p>Keith Peters <a href="http://code.google.com/p/minimalcomps/" onclick="pageTracker._trackPageview('/outgoing/code.google.com/p/minimalcomps/?referer=');">MinimalComps</a> for the Controls.</p>
<p>And now just two snippets from my Source which might be interesting.</p>
<pre class="actionscript3">&nbsp;
<span style="color: #006699; font-weight: bold;">var</span> test_width:<span style="color: #0000cc; font-weight: bold;">uint</span> = <span style="color: #ff6600; font-weight: bold;">1</span> + dist * <span style="color: #ff6600; font-weight: bold;">2</span>;
<span style="color: #006699; font-weight: bold;">var</span> x:<span style="color: #0000cc; font-weight: bold;">Number</span>;
<span style="color: #006699; font-weight: bold;">var</span> y:<span style="color: #0000cc; font-weight: bold;">Number</span>;
<span style="color: #669933; font-weight: bold;">if</span> <span style="color: #663366;">&#40;</span>dist_iteration &lt; <span style="color: #0000cc; font-weight: bold;">Math</span>.<span style="color: #006600;">pow</span><span style="color: #663366;">&#40;</span>test_width,<span style="color: #ff6600; font-weight: bold;">2</span><span style="color: #663366;">&#41;</span><span style="color: #663366;">&#41;</span> <span style="color: #663366;">&#123;</span>
	<span style="color: #669933; font-weight: bold;">do</span> <span style="color: #663366;">&#123;</span>
	x = <span style="color: #663366;">&#40;</span>dist_iteration % test_width<span style="color: #663366;">&#41;</span> - dist;
	y = <span style="color: #0000cc; font-weight: bold;">Math</span>.<span style="color: #006600;">floor</span><span style="color: #663366;">&#40;</span>dist_iteration / test_width<span style="color: #663366;">&#41;</span> - dist;
	dist_iteration++;
	<span style="color: #663366;">&#125;</span>
	<span style="color: #669933; font-weight: bold;">while</span><span style="color: #663366;">&#40;</span><span style="color: #0000cc; font-weight: bold;">Math</span>.<span style="color: #006600;">abs</span><span style="color: #663366;">&#40;</span>x<span style="color: #663366;">&#41;</span>&lt;dist &amp;&amp; <span style="color: #0000cc; font-weight: bold;">Math</span>.<span style="color: #006600;">abs</span><span style="color: #663366;">&#40;</span>y<span style="color: #663366;">&#41;</span>&lt;dist<span style="color: #663366;">&#41;</span>;
<span style="color: #663366;">&#125;</span><span style="color: #669933; font-weight: bold;">else</span><span style="color: #663366;">&#123;</span>
dist++;
dist_iteration = <span style="color: #ff6600; font-weight: bold;">1</span>;
x = -dist;
y = -dist;
<span style="color: #663366;">&#125;</span>
&nbsp;</pre>
<p>This starts from a certain point 0,0 and then returns coordinates in concentric  rectangles around the initial point. Combined with the next snippet (Collision detection) this was used to find an empty sport close to where you click.</p>
<p>The next snippets checks for an empty spot (white) on bitmap where a shape can be put. It could still use some work as it currently assumes that 0,0 is the same for the Bitmap and the Shape. It also only handles x,y and rotation applied to the shape, no scaling or other adjustments. But for now it does it's job quite well.</p>
<pre class="actionscript3">&nbsp;
<span style="color: #66cccc; font-weight: bold;">public</span> <span style="color: #66cccc; font-weight: bold;">static</span> <span style="color: #006699; font-weight: bold;">function</span> check<span style="color: #663366;">&#40;</span><span style="color: #0000cc; font-weight: bold;">shape</span>:<span style="color: #0000cc; font-weight: bold;">Shape</span>,<span style="color: #0000cc; font-weight: bold;">bitmapData</span>:<span style="color: #0000cc; font-weight: bold;">BitmapData</span><span style="color: #663366;">&#41;</span>:<span style="color: #0000cc; font-weight: bold;">Boolean</span> <span style="color: #663366;">&#123;</span>
	<span style="color: #006699; font-weight: bold;">var</span> tempBmpData:<span style="color: #0000cc; font-weight: bold;">BitmapData</span> = <span style="color: #0000cc; font-weight: bold;">new</span> <span style="color: #0000cc; font-weight: bold;">BitmapData</span><span style="color: #663366;">&#40;</span><span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">width</span>, <span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">height</span>, <span style="color: #669933; font-weight: bold;">true</span>, 0xFFFFFF<span style="color: #663366;">&#41;</span>;
	<span style="color: #006699; font-weight: bold;">var</span> <span style="color: #0000cc; font-weight: bold;">matrix</span>:<span style="color: #0000cc; font-weight: bold;">Matrix</span> = <span style="color: #0000cc; font-weight: bold;">new</span> <span style="color: #0000cc; font-weight: bold;">Matrix</span><span style="color: #663366;">&#40;</span><span style="color: #663366;">&#41;</span>;
	<span style="color: #006699; font-weight: bold;">var</span> rotation:<span style="color: #0000cc; font-weight: bold;">Number</span> = <span style="color: #ff6600; font-weight: bold;">2</span> * <span style="color: #0000cc; font-weight: bold;">Math</span>.<span style="color: #006600;">PI</span> * <span style="color: #663366;">&#40;</span><span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">rotation</span> / <span style="color: #ff6600; font-weight: bold;">360</span><span style="color: #663366;">&#41;</span>;
	<span style="color: #0000cc; font-weight: bold;">matrix</span>.<span style="color: #0000cc; font-weight: bold;">rotate</span><span style="color: #663366;">&#40;</span>rotation<span style="color: #663366;">&#41;</span>;
	<span style="color: #0000cc; font-weight: bold;">matrix</span>.<span style="color: #006600;">translate</span><span style="color: #663366;">&#40;</span><span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">width</span>/<span style="color: #ff6600; font-weight: bold;">2</span>, <span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">height</span>/<span style="color: #ff6600; font-weight: bold;">2</span><span style="color: #663366;">&#41;</span>;
	tempBmpData.<span style="color: #006600;">draw</span><span style="color: #663366;">&#40;</span><span style="color: #0000cc; font-weight: bold;">shape</span>,<span style="color: #0000cc; font-weight: bold;">matrix</span><span style="color: #663366;">&#41;</span>;
&nbsp;
	<span style="color: #006699; font-weight: bold;">var</span> tempBmpDataSource:<span style="color: #0000cc; font-weight: bold;">BitmapData</span> = <span style="color: #0000cc; font-weight: bold;">new</span> <span style="color: #0000cc; font-weight: bold;">BitmapData</span><span style="color: #663366;">&#40;</span><span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">width</span>, <span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">height</span>, <span style="color: #669933; font-weight: bold;">true</span>, 0xFFFFFF<span style="color: #663366;">&#41;</span>;
	<span style="color: #006699; font-weight: bold;">var</span> matrix2:<span style="color: #0000cc; font-weight: bold;">Matrix</span> = <span style="color: #0000cc; font-weight: bold;">new</span> <span style="color: #0000cc; font-weight: bold;">Matrix</span><span style="color: #663366;">&#40;</span><span style="color: #663366;">&#41;</span>;
	matrix2.<span style="color: #006600;">translate</span><span style="color: #663366;">&#40;</span>-<span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">x</span>+<span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">width</span>/<span style="color: #ff6600; font-weight: bold;">2</span>,-<span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">y</span>+<span style="color: #0000cc; font-weight: bold;">shape</span>.<span style="color: #006600;">height</span>/<span style="color: #ff6600; font-weight: bold;">2</span><span style="color: #663366;">&#41;</span>;
	tempBmpDataSource.<span style="color: #006600;">draw</span><span style="color: #663366;">&#40;</span><span style="color: #0000cc; font-weight: bold;">bitmapData</span>, matrix2<span style="color: #663366;">&#41;</span>;
&nbsp;
	<span style="color: #006699; font-weight: bold;">var</span> empty:<span style="color: #0000cc; font-weight: bold;">Boolean</span> = tempBmpData.<span style="color: #006600;">hitTest</span><span style="color: #663366;">&#40;</span><span style="color: #0000cc; font-weight: bold;">new</span> <span style="color: #0000cc; font-weight: bold;">Point</span><span style="color: #663366;">&#40;</span><span style="color: #ff6600; font-weight: bold;">0</span>, <span style="color: #ff6600; font-weight: bold;">0</span><span style="color: #663366;">&#41;</span>, 0xFF, tempBmpDataSource, <span style="color: #0000cc; font-weight: bold;">new</span> <span style="color: #0000cc; font-weight: bold;">Point</span><span style="color: #663366;">&#40;</span><span style="color: #ff6600; font-weight: bold;">0</span>, <span style="color: #ff6600; font-weight: bold;">0</span><span style="color: #663366;">&#41;</span>, 0xFF<span style="color: #663366;">&#41;</span>;
	tempBmpData.<span style="color: #006600;">dispose</span><span style="color: #663366;">&#40;</span><span style="color: #663366;">&#41;</span>;
	tempBmpDataSource.<span style="color: #006600;">dispose</span><span style="color: #663366;">&#40;</span><span style="color: #663366;">&#41;</span>;
&nbsp;
	<span style="color: #669933; font-weight: bold;">return</span><span style="color: #663366;">&#40;</span>empty<span style="color: #663366;">&#41;</span>
<span style="color: #663366;">&#125;</span>
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.kraftner.com/2008/05/07/malewitsch/feed/</wfw:commentRss>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/at/</creativeCommons:license>
	</item>
		<item>
		<title>Mondrian</title>
		<link>http://blog.kraftner.com/2008/05/01/12/</link>
		<comments>http://blog.kraftner.com/2008/05/01/12/#comments</comments>
		<pubDate>Thu, 01 May 2008 15:26:34 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
		
		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Art]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Generative Art]]></category>

		<category><![CDATA[Mondrian]]></category>

		<guid isPermaLink="false">http://blog.kraftner.com/?p=12</guid>
		<description><![CDATA[Some days ago I was at an exhibition and when I looked at Mondrians Composition III I just had to do that.
Click at the picture to draw a new one.

<object	type="application/x-shockwave-flash"
			data="http://blog.kraftner.com/wp-content/uploads/2008/05/mondrian.swf"
			width="500"
			height="500">
	<param name="movie" value="http://blog.kraftner.com/wp-content/uploads/2008/05/mondrian.swf" />
</object>
Oh and I used the excellent seeded Random Class by Grant Skinner so the results are random but seeded which means they [...]]]></description>
			<content:encoded><![CDATA[<p>Some days ago I was at an exhibition and when I looked at Mondrians Composition III I just had to do that.<br />
Click at the picture to draw a new one.</p>

<object	type="application/x-shockwave-flash"
			data="http://blog.kraftner.com/wp-content/uploads/2008/05/mondrian.swf"
			width="500"
			height="500">
	<param name="movie" value="http://blog.kraftner.com/wp-content/uploads/2008/05/mondrian.swf" />
</object>
<p><em>Oh and I used the excellent <a title="seeded Random Class" href="http://www.gskinner.com/blog/archives/2008/01/source_code_see.html" onclick="pageTracker._trackPageview('/outgoing/www.gskinner.com/blog/archives/2008/01/source_code_see.html?referer=');">seeded Random Class</a> by Grant Skinner so the results are random but seeded which means they will be the same whenever you come back to see the show again.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kraftner.com/2008/05/01/12/feed/</wfw:commentRss>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/at/</creativeCommons:license>
	</item>
		<item>
		<title>Welcome!</title>
		<link>http://blog.kraftner.com/2008/05/01/welcome/</link>
		<comments>http://blog.kraftner.com/2008/05/01/welcome/#comments</comments>
		<pubDate>Thu, 01 May 2008 15:11:08 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.kraftner.com/?p=16</guid>
		<description><![CDATA[Welcome at my new Blog!
If you're interested in more details on Who? Why? What? Please have a look at the about page.
]]></description>
			<content:encoded><![CDATA[<p>Welcome at my new Blog!</p>
<p>If you're interested in more details on Who? Why? What? Please have a look at the about page.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kraftner.com/2008/05/01/welcome/feed/</wfw:commentRss>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/at/</creativeCommons:license>
	</item>
	</channel>
</rss>
