<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Amil's CSC 370 Blog</title>
	<atom:link href="http://amileo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://amileo.wordpress.com</link>
	<description>Assignments for CSC 370</description>
	<lastBuildDate>Sun, 05 Apr 2009 22:34:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='amileo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Amil's CSC 370 Blog</title>
		<link>http://amileo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://amileo.wordpress.com/osd.xml" title="Amil&#039;s CSC 370 Blog" />
	<atom:link rel='hub' href='http://amileo.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Project 2 w/ Progress</title>
		<link>http://amileo.wordpress.com/2009/03/30/project-2-progress/</link>
		<comments>http://amileo.wordpress.com/2009/03/30/project-2-progress/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 20:54:20 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/2009/03/30/project-2-progress/</guid>
		<description><![CDATA[Videos of the Project Working: Original Teapot Obj File I found this Pyramid Obj File online: This is the Teapot OBJ file with lighting added (Note you can now see the rim of the lid and voided space for the spout) I have now completed the basic requirements of the project. I am able to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=72&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Videos of the Project Working:</p>
<p>Original Teapot Obj File</p>
<span style="text-align:center; display: block;"><a href="http://amileo.wordpress.com/2009/03/30/project-2-progress/"><img src="http://img.youtube.com/vi/A-ePsH14PVE/2.jpg" alt="" /></a></span>
<p>I found this Pyramid Obj File online:</p>
<span style="text-align:center; display: block;"><a href="http://amileo.wordpress.com/2009/03/30/project-2-progress/"><img src="http://img.youtube.com/vi/56YYot4Wcqc/2.jpg" alt="" /></a></span>
<p>This is the Teapot OBJ file with lighting added (Note you can now see the rim of the lid and voided space for the spout)</p>
<span style="text-align:center; display: block;"><a href="http://amileo.wordpress.com/2009/03/30/project-2-progress/"><img src="http://img.youtube.com/vi/aUWqZ6Lbhag/2.jpg" alt="" /></a></span>
<p>I have now completed the basic requirements of the project.  I am able to display a full obj file with no errors.  Here are pics of my progress:</p>
<p><a href="http://amileo.files.wordpress.com/2009/03/progress12.jpg"><img src="http://amileo.files.wordpress.com/2009/03/progress12.jpg?w=450&#038;h=281" alt="progress12" title="progress12" width="450" height="281" class="alignnone size-full wp-image-80" /></a></p>
<p><a href="http://amileo.files.wordpress.com/2009/03/progress2.jpg"><img src="http://amileo.files.wordpress.com/2009/03/progress2.jpg?w=450&#038;h=281" alt="progress12" title="progress12" width="450" height="281" class="alignnone size-full wp-image-80" /></a></p>
<p>So I pretty much have the program completed.  I ran into a little issue of it drawing a few extra lines that it is not suppose to but otherwise my program has exposed the Utah Teapot as the posted obj file for download.</p>
<p><a rel="attachment wp-att-71" href="http://amileo.wordpress.com/2009/03/30/project-2-progress/project2progress/"><img class="alignnone size-full wp-image-71" title="project2progress" src="http://amileo.files.wordpress.com/2009/03/project2progress.jpg?w=450&#038;h=281" alt="project2progress" width="450" height="281" /></a>al </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=72&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/03/30/project-2-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/progress12.jpg" medium="image">
			<media:title type="html">progress12</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/progress2.jpg" medium="image">
			<media:title type="html">progress12</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/project2progress.jpg" medium="image">
			<media:title type="html">project2progress</media:title>
		</media:content>
	</item>
		<item>
		<title>Friday Web Assignment</title>
		<link>http://amileo.wordpress.com/2009/03/25/friday-web-assignment/</link>
		<comments>http://amileo.wordpress.com/2009/03/25/friday-web-assignment/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 02:43:43 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/?p=68</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=68&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-69" title="ex31" src="http://amileo.files.wordpress.com/2009/03/ex31.jpg?w=450&#038;h=281" alt="ex31" width="450" height="281" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=68&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/03/25/friday-web-assignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/ex31.jpg" medium="image">
			<media:title type="html">ex31</media:title>
		</media:content>
	</item>
		<item>
		<title>Ch. 3/Ch. 4 Examples</title>
		<link>http://amileo.wordpress.com/2009/03/19/ch-3ch-4-examples/</link>
		<comments>http://amileo.wordpress.com/2009/03/19/ch-3ch-4-examples/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 02:03:19 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/?p=61</guid>
		<description><![CDATA[In this example for chapter 3 I have modified the code to represent a Bezier curve that can be rotated in 3d space. For the chapter 4 example I have modified the code to show a Cube.  This example demonstrates use of 3d perspective view as well as lighting commands not seen in previous examples.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=61&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this example for chapter 3 I have modified the code to represent a Bezier curve that can be rotated in 3d space.</p>
<p><img class="alignnone size-full wp-image-62" title="cubic3d1" src="http://amileo.files.wordpress.com/2009/03/cubic3d1.jpg?w=450&#038;h=281" alt="cubic3d1" width="450" height="281" /></p>
<p><img class="alignnone size-full wp-image-63" title="cubic3d2" src="http://amileo.files.wordpress.com/2009/03/cubic3d2.jpg?w=450&#038;h=281" alt="cubic3d2" width="450" height="281" /></p>
<p>For the chapter 4 example I have modified the code to show a Cube.  This example demonstrates use of 3d perspective view as well as lighting commands not seen in previous examples.  In this example,  a face is composed of verticies.</p>
<p><img class="alignnone size-full wp-image-64" title="cube" src="http://amileo.files.wordpress.com/2009/03/cube.jpg?w=450&#038;h=281" alt="cube" width="450" height="281" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=61&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/03/19/ch-3ch-4-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/cubic3d1.jpg" medium="image">
			<media:title type="html">cubic3d1</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/cubic3d2.jpg" medium="image">
			<media:title type="html">cubic3d2</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/cube.jpg" medium="image">
			<media:title type="html">cube</media:title>
		</media:content>
	</item>
		<item>
		<title>Homework Getting C++/GLUT to work</title>
		<link>http://amileo.wordpress.com/2009/03/18/homework-getting-cglut-to-work/</link>
		<comments>http://amileo.wordpress.com/2009/03/18/homework-getting-cglut-to-work/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 19:38:39 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/2009/03/18/homework-getting-cglut-to-work/</guid>
		<description><![CDATA[It certainly took me a while but I finally got the GLUT to finally work. Here is an image of the Simple program running.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=55&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It certainly took me a while but I finally got the GLUT to finally work. Here is an image of the Simple program running.</p>
<p><img class="alignnone size-full wp-image-54" title="simpleimage" src="http://amileo.files.wordpress.com/2009/03/simpleimage.jpg?w=450&#038;h=281" alt="simpleimage" width="450" height="281" /></p>
<p><img class="alignnone size-full wp-image-58" title="bounce" src="http://amileo.files.wordpress.com/2009/03/bounce.jpg?w=450&#038;h=281" alt="bounce" width="450" height="281" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=55&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/03/18/homework-getting-cglut-to-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/simpleimage.jpg" medium="image">
			<media:title type="html">simpleimage</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/bounce.jpg" medium="image">
			<media:title type="html">bounce</media:title>
		</media:content>
	</item>
		<item>
		<title>Project 1 Cell Cluster Circles</title>
		<link>http://amileo.wordpress.com/2009/03/04/project-1-cell-cluster-circles/</link>
		<comments>http://amileo.wordpress.com/2009/03/04/project-1-cell-cluster-circles/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 03:00:32 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/?p=49</guid>
		<description><![CDATA[This project gives credit to the image created by Anthony Mattox titled Cell Cluster Circles.  I attempted to recreate his image in which tiny non overlapping circles fill up a much larger circle.  The circles then alter in brightness based upon the distance from the center of the main large circle. The brightness of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=49&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This project gives credit to the image created by Anthony Mattox titled Cell Cluster Circles.  I attempted to recreate his image in which tiny non overlapping circles fill up a much larger circle.  The circles then alter in brightness based upon the distance from the center of the main large circle. The brightness of the circles decrease as distance increase from the main circle&#8217;s center point. My first objective was to get the circles drawing inside of the larger circle.  At this point I was not worried about over lap.  In order to do this I had to create an array of circle objects.  The circle objects have attributes of their origin x, origin y, and radius values.  A circle is completely contained within another circle if the distance between the two cirlces is less than the absolute value of the difference between the two cirlces radiuses.  I had a for loop go through my array of circles making sure this was the case.  The next challenge was to prevent overlapping.  Overlapping between two circles occurs when the distance between the two cirlces is greater than the sum of their two raiduses.  If this was the case I would attempt to reduce the size of the radius in order to fit the spot.  If the radius reached 0 I would call my createCircle method again with the inital radius choosing two new values for x and y. Here are a few images:</p>
<p><img class="alignnone size-full wp-image-50" title="project1_02" src="http://amileo.files.wordpress.com/2009/03/project1_02.jpg?w=450&#038;h=253" alt="project1_02" width="450" height="253" /></p>
<p><img class="alignnone size-full wp-image-51" title="project1_03" src="http://amileo.files.wordpress.com/2009/03/project1_03.jpg?w=450&#038;h=253" alt="project1_03" width="450" height="253" /></p>
<p><img class="alignnone size-full wp-image-52" title="project1_01" src="http://amileo.files.wordpress.com/2009/03/project1_01.jpg?w=450&#038;h=253" alt="project1_01" width="450" height="253" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=49&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/03/04/project-1-cell-cluster-circles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/project1_02.jpg" medium="image">
			<media:title type="html">project1_02</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/project1_03.jpg" medium="image">
			<media:title type="html">project1_03</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/03/project1_01.jpg" medium="image">
			<media:title type="html">project1_01</media:title>
		</media:content>
	</item>
		<item>
		<title>HMWK 4 pt. 1 &amp; 2 (Translate,Rotate,Scale)</title>
		<link>http://amileo.wordpress.com/2009/02/17/hmwk-4-pt1-matrix-multiplication/</link>
		<comments>http://amileo.wordpress.com/2009/02/17/hmwk-4-pt1-matrix-multiplication/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 05:19:04 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/?p=36</guid>
		<description><![CDATA[int screen_width = 720; int screen_height = 480; float [][] rotateMatrix = new float[2][2]; int x0,y0,x1,y1,x2,y2; void setup() { size(screen_width,screen_height); x0 = int(random(screen_width)); y0 = int(random(screen_height)); x1 = int(random(screen_width)); y1 = int(random(screen_height)); x2 = int(random(screen_width)); y2 = int(random(screen_height)); } void draw() { for(float i = 0; i&#60;2; i+=.5) rotateShape(x0, y0, x1, y1, x2, y2, (i*PI)); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=36&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-44" title="hmwk4_pt1" src="http://amileo.files.wordpress.com/2009/02/hmwk4_pt11.jpg?w=450&#038;h=300" alt="hmwk4_pt1" width="450" height="300" /></p>
<p>int screen_width = 720;<br />
int screen_height = 480;<br />
float [][] rotateMatrix = new float[2][2];<br />
int x0,y0,x1,y1,x2,y2;</p>
<p>void setup()<br />
{<br />
size(screen_width,screen_height);<br />
x0 = int(random(screen_width));<br />
y0 = int(random(screen_height));<br />
x1 = int(random(screen_width));<br />
y1 = int(random(screen_height));<br />
x2 = int(random(screen_width));<br />
y2 = int(random(screen_height));<br />
}</p>
<p>void draw()<br />
{</p>
<p>for(float i = 0; i&lt;2; i+=.5)<br />
rotateShape(x0, y0, x1, y1, x2, y2, (i*PI));</p>
<p>saveFrame(&#8220;HMWK4_pt1.jpg&#8221;);</p>
<p>noLoop();<br />
}</p>
<p>void rotateShape(int x0, int y0, int x1, int y1, int x2, int y2, float radian_num)<br />
{<br />
rotateMatrix=setRotate(radian_num);</p>
<p>int x_origin = int((x0+x1+x2)/3);<br />
int y_origin = int((y0+y1+y2)/3);</p>
<p>float[][] pointMatrix = {{x0-x_origin,y0-y_origin},{x1-x_origin,y1-y_origin},{x2-x_origin,y2-y_origin}};</p>
<p>pointMatrix = matrixMultiply(pointMatrix,rotateMatrix);</p>
<p>for(int x = 0; x &lt; pointMatrix.length; x++) {<br />
for(int y = 0; y &lt; pointMatrix[0].length; y++) {<br />
if(y == 0)<br />
pointMatrix[x][y] += x_origin;<br />
else<br />
pointMatrix[x][y] += y_origin;<br />
}<br />
}</p>
<p>triangle(pointMatrix[0][0], pointMatrix[0][1], pointMatrix[1][0], pointMatrix[1][1], pointMatrix[2][0], pointMatrix[2][1]);<br />
}</p>
<p>float[][] setRotate(float radian)<br />
{</p>
<p>float[][] rotates=new float[2][2];</p>
<p>rotates[0][0] = cos(radian);<br />
rotates[0][1] = sin(radian);<br />
rotates[1][0] = -sin(radian);<br />
rotates[1][1] = cos(radian);</p>
<p>return rotates;<br />
}</p>
<p>float[][] matrixMultiply(float[][] m1, float[][] m2)<br />
{<br />
float[][] m3 = new float[m1.length][m2[0].length];</p>
<p>for(int x = 0; x &lt; m3.length; x++)<br />
{<br />
for(int y = 0; y &lt; m3[0].length; y++)<br />
{<br />
for(int z = 0; z &lt; m2.length; z++)<br />
{<br />
m3[x][y] += m1[x][z] * m2[z][y];<br />
}<br />
}<br />
}</p>
<p>return m3;</p>
<p>}</p>
<p><strong>Homework Part II</strong></p>
<p><img class="alignnone size-full wp-image-40" title="hmwk4_pt2" src="http://amileo.files.wordpress.com/2009/02/hmwk4_pt2.jpg?w=450&#038;h=300" alt="hmwk4_pt2" width="450" height="300" /></p>
<p>void setup() {<br />
size(720, 480);<br />
noLoop();<br />
}<br />
void draw() {<br />
pushMatrix();<br />
translate(360, 240);</p>
<p>scale(10);<br />
for(float i = 0; i&lt; 2; i += .01) {<br />
rotate(i * PI);<br />
fill(10,0,255);<br />
triangle(0,0,0,10,10,20);</p>
<p>}</p>
<p>scale(.5);<br />
for(float i = 0; k &lt; 2; i += .01) {<br />
rotate(i * PI);<br />
fill(0,250,0);<br />
triangle(0,0,0,10,10,20);</p>
<p>}</p>
<p>scale(.25);<br />
for(float i = 0; i &lt; 2; i += .01) {<br />
rotate(i * PI);<br />
fill(10,0,155);<br />
triangle(0,0,0,10,10,20);</p>
<p>}</p>
<p>}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=36&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/02/17/hmwk-4-pt1-matrix-multiplication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/02/hmwk4_pt11.jpg" medium="image">
			<media:title type="html">hmwk4_pt1</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/02/hmwk4_pt2.jpg" medium="image">
			<media:title type="html">hmwk4_pt2</media:title>
		</media:content>
	</item>
		<item>
		<title>HMWK 3: pt.2 (5 Random Triangles &amp; Cohen-Sutherland Clipping)</title>
		<link>http://amileo.wordpress.com/2009/02/03/hmwk-4-5-random-triangles-no-clipping/</link>
		<comments>http://amileo.wordpress.com/2009/02/03/hmwk-4-5-random-triangles-no-clipping/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 06:07:30 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/2009/02/03/hmwk-4-5-random-triangles-no-clipping/</guid>
		<description><![CDATA[int x1, x2, x3; int y1, y2, y3; int xmax=540, xmin=180; int ymax=360, ymin=120; int screenWidth=720, screenHeight = 480; int[] outcodep, outcodeq; boolean top=false, bottom=false, left=false, right=false; void setup() { size(screenWidth, screenHeight); background(255,255,255); stroke(255,0,0); rect(xmin, ymin,(xmax-xmin),(ymax-ymin)); stroke(0,0,0); x1 = int(random(720)); y1 = int(random(480)); x2 = int(random(720)); y2 = int(random(480)); x3 = int(random(720)); y3 = int(random(480)); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=26&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-29" title="hmwk4_clip" src="http://amileo.files.wordpress.com/2009/02/hmwk4_clip.jpg?w=450&#038;h=300" alt="hmwk4_clip" width="450" height="300" /></p>
<p>int x1, x2, x3;<br />
int y1, y2, y3;<br />
int xmax=540, xmin=180;<br />
int ymax=360, ymin=120;<br />
int screenWidth=720, screenHeight = 480;<br />
int[] outcodep, outcodeq;<br />
boolean top=false, bottom=false, left=false, right=false;</p>
<p>void setup()<br />
{<br />
size(screenWidth, screenHeight);<br />
background(255,255,255);<br />
stroke(255,0,0);<br />
rect(xmin, ymin,(xmax-xmin),(ymax-ymin));<br />
stroke(0,0,0);</p>
<p>x1 = int(random(720));<br />
y1 = int(random(480));<br />
x2 = int(random(720));<br />
y2 = int(random(480));<br />
x3 = int(random(720));<br />
y3 = int(random(480));</p>
<p>outcodep = new int[4];<br />
outcodeq = new int[4];</p>
<p>clipLine(x1, y1, x2, y2);<br />
clipLine(x2, y2, x3, y3);<br />
clipLine(x1, y1, x3, y3);</p>
<p>saveFrame(&#8220;HMWK4_clip.jpg&#8221;);</p>
<p>}</p>
<p>void clipLine(int xp, int yp, int xq, int yq)<br />
{</p>
<p>int[] orcode = new int[4];<br />
int[] andcode = new int[4];</p>
<p>for(int i=0; i&lt;4; i++)<br />
{<br />
outcodep[i]=0;<br />
outcodeq[i]=0;<br />
andcode[i]=0;<br />
orcode[i]=0;<br />
}</p>
<p>if(xp&gt;=xmax)<br />
outcodep[1]=1;<br />
else if(xp&lt;=xmin)<br />
outcodep[0]=1;</p>
<p>if(yp&gt;=ymax)<br />
outcodep[3]=1;<br />
else if(yp&lt;=ymin)<br />
outcodep[2]=1;</p>
<p>if(xq&gt;=xmax)<br />
outcodeq[1]=1;<br />
else if(xq&lt;=xmin)<br />
outcodeq[0]=1;</p>
<p>if(yq&gt;=ymax)<br />
outcodeq[3]=1;<br />
else if(yq&lt;=ymin)<br />
outcodeq[2]=1;</p>
<p>for(int i = 0; i&lt;4; i++)<br />
{<br />
orcode[i] = (outcodep[i] | outcodeq[i]);<br />
andcode[i] = (outcodep[i] &amp; outcodeq[i]);<br />
}</p>
<p>if(orcode[0] == 0 &amp;&amp; orcode[1] == 0 &amp;&amp; orcode[2] == 0 &amp;&amp; orcode[3]==0)<br />
line(xp,yp,xq,yq); //draw line as line is completely within viewable region</p>
<p>else if(andcode[0]!=0 ||andcode[1] !=0 || andcode[2] !=0 || andcode[3] !=0)<br />
{<br />
//draws nothing as line is completely outside viewable region<br />
}</p>
<p>else<br />
{<br />
int temp_xp = xp;<br />
int temp_yp = yp;</p>
<p>int temp_xq = xq;<br />
int temp_yq = yq;</p>
<p>if(outcodep[0]==1)<br />
{<br />
temp_xp =xmin;<br />
temp_yp = yp + (yq-yp)*(xmin-xp)/(xq-xp);<br />
}<br />
else if(outcodep[1]==1)<br />
{<br />
temp_xp = xp + (xq-xp)*(ymax-yp)/(yq-yp);<br />
temp_yp = ymax;<br />
}</p>
<p>if(outcodep[2] == 1)<br />
{<br />
if(temp_xp &gt; ymax || temp_yp &lt; ymin)<br />
{<br />
temp_yp = yp + (yq-yp)*(xmin-xp)/(xq-xp);<br />
temp_xp = ymin;<br />
}<br />
}<br />
else if(outcodep[3] == 1)<br />
{<br />
if(temp_xp &gt; ymax || temp_yp &lt;= ymin)<br />
{<br />
temp_xp = xp + (xq-xp)*(ymax-yp)/(yq-yp);<br />
temp_yp = ymax;<br />
}<br />
}</p>
<p>if (outcodeq[0] == 1)<br />
{<br />
temp_yq = yp + (yq-yp)*(xmin-xp)/(xq-xp);<br />
temp_xq = xmin;<br />
}<br />
else if (outcodeq[1] == 1)<br />
{<br />
temp_xq = xmax;<br />
temp_yq = yp+(yq-yp)*(xmax-xp)/(xq-xp);<br />
}</p>
<p>if (outcodeq[2] == 1)<br />
{<br />
if(temp_yq &gt;= ymax || temp_yq &lt;=ymin)<br />
{<br />
temp_xq = xp+(xq-xp)*(ymin-yp)/(yq-yp);<br />
temp_yq = ymin;<br />
}<br />
}<br />
else if (outcodeq[3]==1)<br />
{<br />
if(temp_yq &gt;= ymax || temp_yq &lt;=ymin)<br />
{<br />
temp_xq = xp+(xq-xp)*(ymax-yp)/(yq-yp);<br />
temp_yq = ymax;<br />
}<br />
}</p>
<p>line(temp_xp,temp_yp,temp_xq,temp_yq);</p>
<p>}</p>
<p>}</p>
<p><img class="alignnone size-full wp-image-25" title="hmwk4_5triangles" src="http://amileo.files.wordpress.com/2009/02/hmwk4_5triangles.jpg?w=450&#038;h=300" alt="hmwk4_5triangles" width="450" height="300" /></p>
<p>void setup()<br />
{<br />
size(720,480);<br />
fiveTriangle();<br />
}<br />
void myTriangle(int x0,int y0,int x1,int y1,int x2, int y2)<br />
{</p>
<p>line(x0,y0,x1,y1);<br />
line(x1,y1,x2,y2);<br />
line(x2,y2,x0,y0);</p>
<p>}</p>
<p>void fiveTriangle()<br />
{<br />
int x0, x1, x2, y0, y1, y2;</p>
<p>for(int x = 0; x &lt; 5; x++)<br />
{<br />
x0 = int(random(720));<br />
x1 = int(random(720));<br />
x2 = int(random(720));<br />
y0 = int(random(480));<br />
y1 = int(random(480));<br />
y2 = int(random(480));</p>
<p>line(x0, y0, x1, y1);<br />
line(x1, y1, x2, y2);<br />
line(x2, y2, x0, y0);<br />
}<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=26&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/02/03/hmwk-4-5-random-triangles-no-clipping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/02/hmwk4_clip.jpg" medium="image">
			<media:title type="html">hmwk4_clip</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/02/hmwk4_5triangles.jpg" medium="image">
			<media:title type="html">hmwk4_5triangles</media:title>
		</media:content>
	</item>
		<item>
		<title>Home Work 3 (Curve Applet)</title>
		<link>http://amileo.wordpress.com/2009/02/03/home-work-4-curve-applet/</link>
		<comments>http://amileo.wordpress.com/2009/02/03/home-work-4-curve-applet/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 06:04:47 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/2009/02/03/home-work-4-curve-applet/</guid>
		<description><![CDATA[Applet Link ftp://student.uncw.edu/ana6997/hmwk4cubicApplet.jar Here&#8217;s the code: int click=0; int x_0,y_0,x_1,y_1,x_2,y_2,x_3,y_3; void setup() { size(400,400); } void draw() { } void myCubic(int x0,int y0,int x1,int y1,int x2, int y2,int x3, int y3) { float x, y; for(float t=0; t&#60;=1; t+=0.0005) { x = ((pow(1-t,3)*x0) + (3*pow(1-t,2)*t*x1) + (3*(1-t)*pow(t,2)*x2) + (pow(t,3)*x3)); y = ((pow(1-t,3)*y0) + (3*pow(1-t,2)*t*y1) + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=24&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="ftp://student.uncw.edu/ana6997/hmwk4cubicApplet.jar">Applet Link</a></p>
<p>ftp://student.uncw.edu/ana6997/hmwk4cubicApplet.jar</p>
<p>Here&#8217;s the code:<br />
int click=0;<br />
int x_0,y_0,x_1,y_1,x_2,y_2,x_3,y_3;</p>
<p>void setup()<br />
{<br />
size(400,400);<br />
}</p>
<p>void draw()<br />
{</p>
<p>}</p>
<p>void myCubic(int x0,int y0,int x1,int y1,int x2, int y2,int x3, int y3)<br />
{</p>
<p>float x, y;</p>
<p>for(float t=0; t&lt;=1; t+=0.0005) {<br />
x = ((pow(1-t,3)*x0) + (3*pow(1-t,2)*t*x1) + (3*(1-t)*pow(t,2)*x2) + (pow(t,3)*x3));<br />
y = ((pow(1-t,3)*y0) + (3*pow(1-t,2)*t*y1) + (3*(1-t)*pow(t,2)*y2) + (pow(t,3)*y3));</p>
<p>point(x,y);<br />
}<br />
}</p>
<p>void mousePressed() {</p>
<p>if(click&lt;4)<br />
{<br />
switch(click) {<br />
case 0:<br />
x_0 = mouseX;<br />
y_0 = mouseY;<br />
point(x_0,y_0);<br />
click++;<br />
break;<br />
case 1:<br />
x_1 = mouseX;<br />
y_1 = mouseY;<br />
point(x_1,y_1);<br />
click++;<br />
break;<br />
case 2:<br />
x_2 = mouseX;<br />
y_2 = mouseY;<br />
point(x_2,y_2);<br />
click++;<br />
break;<br />
case 3:<br />
x_3 = mouseX;<br />
y_3 = mouseY;<br />
point(x_3,y_3);<br />
myCubic(x_0,y_0,x_1,y_1,x_2,y_2,x_3,y_3);<br />
click=0;<br />
break;<br />
}</p>
<p>}</p>
<p>}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=24&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/02/03/home-work-4-curve-applet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>
	</item>
		<item>
		<title>HMWK 2</title>
		<link>http://amileo.wordpress.com/2009/01/23/hmwk-3/</link>
		<comments>http://amileo.wordpress.com/2009/01/23/hmwk-3/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 08:22:14 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/?p=13</guid>
		<description><![CDATA[MyLinear Line void setup() { size(400,400); } void draw() { myLine(300,200,150,280,0,1); myLine(10,30,70,80,0,1); myLine(50,200,100,280,0,1); } void myLine(int x0,int y0,int x1,int y1,int t0,int t1) { float x, y,tStart, tEnd; tStart = t0; tEnd = t1; for(float t=tStart; t&#60;=tEnd; t+=0.005) { x = x0 + t*(x1-x0); y = y0 + t*(y1-y0); point(x,y); } } My Quadratic Line void [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=13&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-14" title="hmwk3_myline" src="http://amileo.files.wordpress.com/2009/01/hmwk3_myline.jpg?w=450" alt="hmwk3_myline"   /></p>
<p>MyLinear Line</p>
<p>void setup()<br />
{<br />
size(400,400);<br />
}</p>
<p>void draw()<br />
{<br />
myLine(300,200,150,280,0,1);<br />
myLine(10,30,70,80,0,1);<br />
myLine(50,200,100,280,0,1);</p>
<p>}</p>
<p>void myLine(int x0,int y0,int x1,int y1,int t0,int t1)<br />
{<br />
float x, y,tStart, tEnd;</p>
<p>tStart = t0;<br />
tEnd = t1;</p>
<p>for(float t=tStart; t&lt;=tEnd; t+=0.005) {<br />
x = x0 + t*(x1-x0);<br />
y = y0 + t*(y1-y0);<br />
point(x,y);<br />
}</p>
<p>}</p>
<p><img class="alignnone size-full wp-image-15" title="hmwk3_myquad" src="http://amileo.files.wordpress.com/2009/01/hmwk3_myquad.jpg?w=450" alt="hmwk3_myquad"   /></p>
<p>My Quadratic Line</p>
<p>void setup()<br />
{<br />
size(400,400);<br />
}</p>
<p>void draw()<br />
{</p>
<p>myQuad(100,150,200,180,340,160);<br />
myQuad(130,100,200,20,370,80);</p>
<p>saveFrame(&#8220;HMWK3_MyQuad.jpg&#8221;);<br />
}</p>
<p>void myQuad(int x0,int y0,int x1,int y1,int x2, int y2)<br />
{<br />
float x, y;</p>
<p>for(float t=0; t&lt;=1; t+=0.0005) {<br />
x = ((pow(1-t,2)*x0) + (2*(1-t)*t*x1) + (pow(t,2)*x2));<br />
y = ((pow(1-t,2)*y0) + (2*(1-t)*t*y1) + (pow(t,2)*y2));</p>
<p>point(x,y);<br />
}<br />
}</p>
<p><img class="alignnone size-full wp-image-17" title="hmwk3_mycubic1" src="http://amileo.files.wordpress.com/2009/01/hmwk3_mycubic1.jpg?w=450" alt="hmwk3_mycubic1"   /></p>
<p>My Cubic Line</p>
<p>void setup()<br />
{<br />
size(400,400);<br />
}</p>
<p>void draw()<br />
{</p>
<p>myCubic(120, 100, 150, 200, 200, 100, 250, 100);<br />
myCubic(80, 300, 75, 200, 100, 350, 250, 200);<br />
saveFrame(&#8220;HMWK3_MyCubic.jpg&#8221;);<br />
}</p>
<p>void myCubic(int x0,int y0,int x1,int y1,int x2, int y2,int x3, int y3)<br />
{<br />
float x, y;</p>
<p>for(float t=0; t&lt;=1; t+=0.0005) {<br />
x = ((pow(1-t,3)*x0) + (3*pow(1-t,2)*t*x1) + (3*(1-t)*pow(t,2)*x2) + (pow(t,3)*x3));<br />
y = ((pow(1-t,3)*y0) + (3*pow(1-t,2)*t*y1) + (3*(1-t)*pow(t,2)*y2) + (pow(t,3)*y3));</p>
<p>point(x,y);<br />
}<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=13&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/01/23/hmwk-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/01/hmwk3_myline.jpg" medium="image">
			<media:title type="html">hmwk3_myline</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/01/hmwk3_myquad.jpg" medium="image">
			<media:title type="html">hmwk3_myquad</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/01/hmwk3_mycubic1.jpg" medium="image">
			<media:title type="html">hmwk3_mycubic1</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Exercise #1</title>
		<link>http://amileo.wordpress.com/2009/01/16/hmwk-2/</link>
		<comments>http://amileo.wordpress.com/2009/01/16/hmwk-2/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 17:32:47 +0000</pubDate>
		<dc:creator>ana6997</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amileo.wordpress.com/2009/01/16/hmwk-2/</guid>
		<description><![CDATA[void setup() { size(350,350); } void draw() { drawCircle(100,100,20); drawWeb(200,10); drawLine(300,100,300,200); } void drawLine(int xa, int ya, int xb, int yb) { int x1 = xa; int x2 = xb; int y1 = ya; int y2 = yb; boolean steep=false; if(abs(y2-y1) &#62; abs(x2-x1)) steep=true; if(steep) { x1 = ya; y1 = xa; x2 = yb; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=9&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-11" title="hmwk21" src="http://amileo.files.wordpress.com/2009/01/hmwk21.jpg?w=450" alt="hmwk21"   /></p>
<p>void setup()<br />
{<br />
size(350,350);<br />
}</p>
<p>void draw()<br />
{</p>
<p>drawCircle(100,100,20);<br />
drawWeb(200,10);<br />
drawLine(300,100,300,200);</p>
<p>}</p>
<p>void drawLine(int xa, int ya, int xb, int yb)<br />
{<br />
int x1 = xa;<br />
int x2 = xb;<br />
int y1 = ya;<br />
int y2 = yb;<br />
boolean steep=false;</p>
<p>if(abs(y2-y1) &gt; abs(x2-x1))<br />
steep=true;</p>
<p>if(steep)<br />
{<br />
x1 = ya;<br />
y1 = xa;</p>
<p>x2 = yb;<br />
y2 = xb;</p>
<p>}</p>
<p>if(x1&gt;x2)<br />
{<br />
x1 = yb;<br />
x2 = ya;</p>
<p>y1 = xb;<br />
y2 = xa;<br />
}</p>
<p>if(x1&gt;x2)<br />
{<br />
x1 = xb;<br />
x2 = xa;</p>
<p>y1 = yb;<br />
y2 = ya;<br />
}</p>
<p>int run = x2 &#8211; x1;<br />
int rise = abs(y1 &#8211; y2);<br />
float error = 0;<br />
float slope =(float)(1.0*rise)/ run;<br />
int ystep;<br />
int y = y1;</p>
<p>if (y1 &lt; y2)<br />
ystep = 1;<br />
else<br />
ystep = -1;</p>
<p>for(int x=x1; x&lt;x2; x++)<br />
{<br />
if(steep)<br />
point(y,x);<br />
else<br />
point(x,y);</p>
<p>error=error + slope;</p>
<p>if (error &gt;= 0.5)<br />
{<br />
y = y + ystep;<br />
error = error &#8211; 1.0;<br />
}</p>
<p>}</p>
<p>}<br />
void drawCircle(int x1, int y1, int radius)<br />
{<br />
int f = 1 &#8211; radius;<br />
int ddF_x = 1;<br />
int ddF_y = -2 * radius;<br />
int x = 0;<br />
int y = radius;</p>
<p>point(x1, y1 + radius);<br />
point(x1, y1 &#8211; radius);<br />
point(x1 + radius, y1);<br />
point(x1 &#8211; radius, y);</p>
<p>while(x &lt; y)<br />
{<br />
assert(ddF_x == 2 * x + 1);<br />
assert(ddF_y == -2 * y);<br />
assert(f == x*x + y*y &#8211; radius*radius + 2*x &#8211; y + 1);<br />
if(f &gt;= 0)<br />
{<br />
y&#8211;;<br />
ddF_y += 2;<br />
f += ddF_y;<br />
}<br />
x++;<br />
ddF_x += 2;<br />
f += ddF_x;<br />
point(x1 + x, y1 + y);<br />
point(x1 &#8211; x, y1 + y);<br />
point(x1 + x, y1 &#8211; y);<br />
point(x1 &#8211; x, y1 &#8211; y);<br />
point(x1 + y, y1 + x);<br />
point(x1 &#8211; y, y1 + x);<br />
point(x1 + y, y1 &#8211; x);<br />
point(x1 &#8211; y, y1 &#8211; x);<br />
}<br />
}</p>
<p>void drawWeb(int size, int step)<br />
{</p>
<p>for (int x2 = 0; x2 &lt; size; x2+=step)<br />
{<br />
int y1 = size-x2;<br />
drawLine(0, y1, x2, 0);</p>
<p>}<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amileo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amileo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amileo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amileo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amileo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amileo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amileo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amileo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amileo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amileo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amileo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amileo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amileo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amileo.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amileo.wordpress.com&amp;blog=6106175&amp;post=9&amp;subd=amileo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amileo.wordpress.com/2009/01/16/hmwk-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f4a78f01f6d220f390781d12f3cac4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ana6997</media:title>
		</media:content>

		<media:content url="http://amileo.files.wordpress.com/2009/01/hmwk21.jpg" medium="image">
			<media:title type="html">hmwk21</media:title>
		</media:content>
	</item>
	</channel>
</rss>
