<?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>Degrafa &#187; svg</title>
	<atom:link href="http://www.degrafa.org/blog/category/svg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.degrafa.org/blog</link>
	<description>Degrafa is a declarative graphics framework.</description>
	<lastBuildDate>Fri, 06 Nov 2009 05:15:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ready, Set, Shape Stroke</title>
		<link>http://www.degrafa.org/blog/2009/11/ready-set-shape-stroke/</link>
		<comments>http://www.degrafa.org/blog/2009/11/ready-set-shape-stroke/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 23:12:39 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[beta 3]]></category>
		<category><![CDATA[strokes]]></category>
		<category><![CDATA[svg]]></category>

		<guid isPermaLink="false">http://www.degrafa.org/blog/?p=266</guid>
		<description><![CDATA[We will be introducing a couple more simple yet sophisticated decorations into Degrafa Beta 3.2 in order to show the multitude of ways this feature can be used. One of these is ShapeStrokeDecorator. This is a different type of decoration compared to the the SVGDashLine example in that in MXML it &#8220;wraps&#8221; the geometry you [...]]]></description>
			<content:encoded><![CDATA[<p>We will be introducing a couple more simple yet sophisticated decorations into Degrafa Beta 3.2 in order to show the multitude of ways this feature can be used. One of these is <a href="http://degrafa.org/source/ShapeStroke/ShapeStroke_Sample.swf" target="_blank">ShapeStrokeDecorator</a>. This is a different type of decoration compared to the the <a href="http://www.degrafa.org/source/HappyHolidays/HappyHolidays.html" target="_blank">SVGDashLine example</a> in that in MXML it &#8220;wraps&#8221; the geometry you wish to decorate rather than being a nested tag. Consider the order of composition reversed between the two types.</p>
<p>ShapeStrokeDecorator achieves results similar to advanced path tools in a vector editor that allow placement of items along a path.</p>
<p><a href="http://degrafa.org/source/ShapeStroke/ShapeStroke_Sample.swf"><img class="aligncenter size-full wp-image-270" title="ShapeStroke" src="http://www.degrafa.org/blog/wp-content/uploads/2009/11/ShapeStroke.jpg" alt="ShapeStroke" width="485" height="422" /></a></p>
<p>This decoration will be part of beta 3.2 due out this week. <a href="http://degrafa.org/source/ShapeStroke/ShapeStroke_Sample.swf" target="_blank">Here it is in action</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.degrafa.org/blog/2009/11/ready-set-shape-stroke/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Randomly Generated Art</title>
		<link>http://www.degrafa.org/blog/2008/02/randomly-generated-art/</link>
		<comments>http://www.degrafa.org/blog/2008/02/randomly-generated-art/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 04:11:42 +0000</pubDate>
		<dc:creator>juan</dc:creator>
				<category><![CDATA[beta 1]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[samples]]></category>
		<category><![CDATA[svg]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://www.degrafa.com/2008/02/11/randomly-generated-art/</guid>
		<description><![CDATA[
The other day I came across Chad Udell&#8217;s post about his KulerCreator and it got me thinking. Degrafa could easily be used to create random generated art, especially since so many of the Degrafa object properties are bindable. I grabbed Tweener (which I had never used before) and applied it to a few different shapes [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.degrafa.com/wp-content/source/images/DegrafaRGA1.jpg" alt="Degrafa RGA" /><br/><br />
The other day I came across <a href="http://visualrinse.com/2008/02/09/kuler-creator-dissected-in-computer-arts-issue-145-tutorialsource-code/" target="_blank">Chad Udell&#8217;s post about his KulerCreator</a> and it got me thinking. Degrafa could easily be used to create random generated art, especially since so many of the Degrafa object properties are bindable. I grabbed <a href="http://code.google.com/p/tweener/" target="_blank">Tweener</a> (which I had never used before) and applied it to a few different shapes and their properties.</p>
<p>I used two circles and set tweens on their size dimensions, as well as some of the gradient fill properties, which creates some interesting effects. There&#8217;s a polygon in there and I set tweens to each one of it&#8217;s four points. Finally, I threw a bird shape in there drawn with SVG path data. It took no time at all to put this together and the results are interesting. Most importantly, it was easy and was done using MXML markup.</p>
<p>Things could get really interesting with some physics, random colors, filters, easing, etc.</p>
<p><a href="http://samples.degrafa.com/DegrafaTweener/RGA1/DegrafaTweener.html" target="_blank">See the results</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.degrafa.org/blog/2008/02/randomly-generated-art/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Degrafa Screencast: Using SVG Path Data</title>
		<link>http://www.degrafa.org/blog/2007/07/degrafa-screencast-using-svg-path-data/</link>
		<comments>http://www.degrafa.org/blog/2007/07/degrafa-screencast-using-svg-path-data/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 08:34:01 +0000</pubDate>
		<dc:creator>juan</dc:creator>
				<category><![CDATA[beta 1]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[samples]]></category>
		<category><![CDATA[screencasts]]></category>
		<category><![CDATA[svg]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.degrafa.com/2007/07/31/degrafa-screencast-using-svg-path-data/</guid>
		<description><![CDATA[Here&#8217;s a quick demo showing how you can use SVG path data to draw shapes in Flex via Degrafa. I know it&#8217;s a bit hard to see the code because of the video size, but you can at least get a general sense of what&#8217;s going on.
What I&#8217;m going through here is a pretty manual [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick demo showing how you can use SVG path data to draw shapes in Flex via Degrafa. I know it&#8217;s a bit hard to see the code because of the video size, but you can at least get a general sense of what&#8217;s going on.</p>
<p>What I&#8217;m going through here is a pretty manual process that were going to try to eliminate with some import/export and visual tool sets. You can see a slightly larger video <a href="http://www.brightcove.com/title.jsp?title=1130068155&#038;channel=1130055106">here</a>.</p>
<p><embed src='http://admin.brightcove.com/destination/player/player.swf' bgcolor='#FFFFFF' flashVars='allowFullScreen=true&#038;initVideoId=1130068155&#038;servicesURL=http://www.brightcove.com&#038;viewerSecureGatewayURL=https://www.brightcove.com&#038;cdnURL=http://admin.brightcove.com&#038;autoStart=false' base='http://admin.brightcove.com' name='bcPlayer' width='436' height='362' allowFullScreen='true' allowScriptAccess='always' seamlesstabbing='false' type='application/x-shockwave-flash' swLiveConnect='true' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://www.degrafa.org/blog/2007/07/degrafa-screencast-using-svg-path-data/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How Complex Can You Get With Degrafa? Very.</title>
		<link>http://www.degrafa.org/blog/2007/07/how-complex-can-you-get-with-degrafa-very/</link>
		<comments>http://www.degrafa.org/blog/2007/07/how-complex-can-you-get-with-degrafa-very/#comments</comments>
		<pubDate>Fri, 27 Jul 2007 07:03:26 +0000</pubDate>
		<dc:creator>juan</dc:creator>
				<category><![CDATA[beta 1]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[samples]]></category>
		<category><![CDATA[svg]]></category>
		<category><![CDATA[complex]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[path]]></category>

		<guid isPermaLink="false">http://www.degrafa.com/2007/07/27/how-complex-can-you-get-with-degrafa-very/</guid>
		<description><![CDATA[So far, some of the examples of the drawing capabilities of Degrafa have been relatively simple in order to stress key concepts and features. We think it&#8217;s important that users of the framework are in no way limited in what they can create and as we progress with Degrafa we will try to put together [...]]]></description>
			<content:encoded><![CDATA[<p>So far, some of the examples of the drawing capabilities of Degrafa have been relatively simple in order to stress key concepts and features. We think it&#8217;s important that users of the framework are in no way limited in what they can create and as we progress with Degrafa we will try to put together complex examples of the capabilities when ever possible.</p>
<p>In this case we&#8217;ve taken an <a href="http://www.croczilla.com/svg/samples/tiger/tiger.svg">SVG from here</a> and ported it over to Degrafa in under 1900 lines of MXML (minus some line breaks). Also, we added the ability to change the color of the tiger&#8217;s eyes just as a quick example of affecting the graphic dynamically. Here&#8217;s the sample:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_EyeOfTheTiger_1752861887"
			class="flashmovie"
			width="436"
			height="436">
	<param name="movie" value="http://www.degrafa.com/wp-content/source/swf/EyeOfTheTiger.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.degrafa.com/wp-content/source/swf/EyeOfTheTiger.swf"
			name="fm_EyeOfTheTiger_1752861887"
			width="436"
			height="436">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p><a href="http://www.degrafa.com/wp-content/source/swf/EyeOfTheTiger.swf">Click here to open this example in a larger window.</a></p>
<h4>Drawing with SVG Path Data</h4>
<p>This tiger is drawn using shorthand path data that maps directly to SVG path data in that they are the same. However, you are not limited to that drawing method. The SVG path data for this example was copied and pasted into the Degrafa markup. Here&#8217;s an example of how one whisker is drawn, including Fills and Strokes:</p>
<pre>
<code>
<geometry:Path
data="M-118.774 81.262C-118.774 81.262 -119.323 83.078
-120.092 82.779C-120.86 82.481 -119.977 31.675 -140.043
26.801C-140.043 26.801 -120.82 25.937 -118.774 81.262z">
	<geometry:Fill>
		<solidFill color="#ffffff"/>
	</geometry:Fill>
	<geometry:Stroke>
		<solidStroke alpha=".25" color="#000000"/>
	</geometry:Stroke>
</geometry:Path>

<geometry:Path
data="M-91.284 123.59C-91.284 123.59 -89.648 124.55
-90.118 125.227C-90.589 125.904 -139.763 113.102
-149.218 131.459C-149.218 131.459 -145.539 112.572
-91.284 123.59z">
	<geometry:Fill>
		<solidFill color="#ffffff"/>
	</geometry:Fill>
	<geometry:Stroke>
		<solidStroke alpha=".25" color="#000000"/>
	</geometry:Stroke>
</geometry:Path>
</code>
</pre>
<p>Each shape is drawn as a Path and uses short hand markup for moveTo, cubicBezierTo and positioning. With this method you can create objects similar to the way SVGs are drawn and you can get very detailed. Once the objects are drawn, you are free to manipulate them as you see fit.</p>
<p>In the short term we&#8217;d like to integrate the ability for someone to create artwork in Illustrator, export it as an SVG, and then bring it right into Flex via Degrafa to leverage the benefits of having a dynamic graphic versus a static one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.degrafa.org/blog/2007/07/how-complex-can-you-get-with-degrafa-very/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

