<?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>Ju Park&#039;s</title>
	<atom:link href="http://itp.nyu.edu/~jyp323/ju/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://itp.nyu.edu/~jyp323/ju</link>
	<description>ITP blog</description>
	<lastBuildDate>Thu, 16 May 2013 04:36:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Nature of Code: Final Project</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=240</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=240#comments</comments>
		<pubDate>Thu, 16 May 2013 04:31:51 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Nature of Code]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=240</guid>
		<description><![CDATA[&#60;Interactive Fractal&#62;  Inspiration I was inspired by the fractal wall at the Museum of Math. I wanted to develop a interactive wall where people can create their own fractals with customized shape. Process At first, I wanted to develop a shape detection using fingers like the figure below. However, the finger detection using kinect camera [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><strong>&lt;Interactive Fractal&gt; </strong></p>
<p><strong>Inspiration</strong></p>
<p>I was inspired by the fractal wall at the Museum of Math. I wanted to develop a interactive wall where people can create their own fractals with customized shape.</p>
<p><img title="fractals" src="http://media.sacbee.com/smedia/2013/01/03/16/21/1oyDuy.Em.4.jpeg" alt="" width="315" height="223" /></p>
<p><strong>Process</strong></p>
<p>At first, I wanted to develop a shape detection using fingers like the figure below. However, the finger detection using kinect camera was so limited under specified environment. It requires a blank white or black background. Therefore, I decided to use OpenNI hand detection instead, and draw shapes along with the hand motion.  After letting users draw shapes over air in front of hand detection, I require users to hold their hand still for 3 seconds to let the program know that drawing shape is done. Then, the program a.k.a openframeworks stores hand drawn shape as vertices and duplicate them multiple times in order to create a fractal based on drawn shape.</p>
<p><a href="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/04/Scan-32.jpeg"><img title="Scan 32" src="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/04/Scan-32-1024x791.jpeg" alt="" width="520" height="401" /></a></p>
<p><strong>Technology</strong></p>
<p>I used Kinect+OpenNI library to detect hand motion and wrote a program in Openframeworks.</p>
<p>&nbsp;</p>
<p><strong>Documentation Video</strong></p>
<p>&nbsp;</p>
<p><iframe src="http://player.vimeo.com/video/66213729" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/66213729">Interactive Fractal</a> from <a href="http://vimeo.com/user18328485">Ju Young Park</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>&nbsp;</p>
<p><strong>Code</strong></p>
<p>I will upload the github later.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=240</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nature of Code: Final Project Idea</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=230</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=230#comments</comments>
		<pubDate>Wed, 03 Apr 2013 03:00:56 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Nature of Code]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=230</guid>
		<description><![CDATA[My original idea was to develop a project using recursive or L-system algorithm and kinect camera sensing. My idea was to build human forest. I wanted to turn human body into stem of tree and create branches recursively around the arms. &#160; Here are the sketches However, I saw a similar project at the Museum [...]]]></description>
			<content:encoded><![CDATA[<p>My original idea was to develop a project using recursive or L-system algorithm and kinect camera sensing. My idea was to build human forest. I wanted to turn human body into stem of tree and create branches recursively around the arms.</p>
<p>&nbsp;</p>
<p>Here are the sketches</p>
<p style="text-align: center;"><a href="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/04/Screen-Shot-2013-04-02-at-10.53.31-PM.png"><img class="aligncenter  wp-image-231" title="Screen Shot 2013-04-02 at 10.53.31 PM" src="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/04/Screen-Shot-2013-04-02-at-10.53.31-PM.png" alt="" width="638" height="338" /></a></p>
<p style="text-align: center;"><a href="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/04/Scan-31-e1364957879577.jpeg"><img class="aligncenter  wp-image-232" title="Scan 31" src="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/04/Scan-31-e1364957960131-883x1024.jpeg" alt="" width="416" height="482" /></a></p>
<p style="text-align: left;">However, I saw a similar project at the Museum of Math.</p>
<p style="text-align: left;"><img class="aligncenter" title="tree" src="http://assets.dnainfo.com/generated/photo/2012/12/momath-museum-of-mathematics-13554304536773.jpg/image640x480.jpg" alt="" width="576" height="432" /></p>
<p style="text-align: left;">Fortunately, I was inspired by the fractal wall at the museum so that I could develop a new ides. Basically,  I decided to make interactive fractals.</p>
<p style="text-align: left;"><img class="aligncenter" title="fractals" src="http://media.sacbee.com/smedia/2013/01/03/16/21/1oyDuy.Em.4.jpeg" alt="" width="315" height="223" /></p>
<p style="text-align: left;">With shape detection, users can create shapes with their fingers. The created shape becomes a basis of the fractal.</p>
<p style="text-align: left;"><a href="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/04/Scan-32.jpeg"><img class="aligncenter size-large wp-image-236" title="Scan 32" src="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/04/Scan-32-1024x791.jpeg" alt="" width="520" height="401" /></a></p>
<p style="text-align: left;"><img class="alignnone" title="fractal" src="http://www.fractalsciencekit.com/fractals/large/Fractal-Circle-Orbit-Trap-32.jpg" alt="" width="576" height="384" /></p>
<p style="text-align: left;">
<p style="text-align: left;"><strong>Technical Issues: </strong></p>
<p style="text-align: left;">Object Detection + Shape Detection</p>
<p style="text-align: left;">Processing or Openframeworks</p>
<p style="text-align: left;">Camera Sensing</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=230</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spatial Media: Midterm</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=220</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=220#comments</comments>
		<pubDate>Wed, 20 Mar 2013 02:57:10 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Spatial Media]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=220</guid>
		<description><![CDATA[General For this project, Jess and I created an interactive wall for New Year&#8217;s Party. Participants of the party are able to text their new year&#8217;s resolutions and display them on the wall. This interactive wall changes to the countdown scene at the midnight, and after then, the wall becomes a sound-responsive wall for DJ [...]]]></description>
			<content:encoded><![CDATA[<p><strong>General</strong></p>
<p>For this project, Jess and I created an interactive wall for New Year&#8217;s Party. Participants of the party are able to text their new year&#8217;s resolutions and display them on the wall. This interactive wall changes to the countdown scene at the midnight, and after then, the wall becomes a sound-responsive wall for DJ performance. The colors and the size of the wall are directly responsive to rhythms and beats of the playing music.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><iframe src="http://player.vimeo.com/video/61959644" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/66213729">Interactive Fractal</a> from <a href="http://vimeo.com/user18328485">Ju Young Park</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Code</strong></p>
<p>https://github.com/juyoungp/SpatialMedia</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=220</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nature of Code: Midterm</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=216</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=216#comments</comments>
		<pubDate>Wed, 13 Mar 2013 02:13:29 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Nature of Code]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=216</guid>
		<description><![CDATA[For my midterm, I was inspired by TextRain, which created by Camille Utterbeck and Romy Achituv. For my assignment 4, I created rain drops falling from top of the screen. I improved the concept of rain drops to interactive bubbles in order to make the project more interactive and attractive to kids. I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>For my midterm, I was inspired by TextRain, which created by Camille Utterbeck and Romy Achituv.</p>
<p><img class="aligncenter" title="textRain" src="http://farm3.staticflickr.com/2137/2421476455_04d5145f2b_z.jpg" alt="" width="384" height="288" /></p>
<p><a href="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-26-at-10.44.45-PM.png"><img class="aligncenter size-medium wp-image-203" title="Screen Shot 2013-02-26 at 10.44.45 PM" src="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-26-at-10.44.45-PM-300x238.png" alt="" width="300" height="238" /></a></p>
<p>For my assignment 4, I created rain drops falling from top of the screen. I improved the concept of rain drops to interactive bubbles in order to make the project more interactive and attractive to kids. I decided to use particle system to make falling bubbles to spread out into smaller bubbles. I used brightness detection to detect moments when bubbles touch my body. Originally, I wanted to use kinect for this project, but I failed to do so since I struggled a lot with getting pixels from kinect.</p>
<p style="text-align: center;"> <img class="aligncenter" title="bubble" src="http://www.manataka.org/images/bubble%20bath.jpg" alt="" width="320" height="320" /></p>
<p>Overall, I am satisfied with my final outcome. I will upload the code as soon as possible.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/GxfuBU_zKss" frameborder="0" allowFullScreen="true"> </iframe></p>
<div></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=216</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nature of Code: Assignment5</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=212</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=212#comments</comments>
		<pubDate>Wed, 06 Mar 2013 05:39:40 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Nature of Code]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=212</guid>
		<description><![CDATA[For this week, I spent most of time to figure out how box2D works, because I haven&#8217;t used it before now. What I tried to make was a particle system of bunch of people using box 2D. Incorporating two different convex shapes to look like a human so that the shape looks like a south-park [...]]]></description>
			<content:encoded><![CDATA[<p>For this week, I spent most of time to figure out how box2D works, because I haven&#8217;t used it before now. What I tried to make was a particle system of bunch of people using box 2D. Incorporating two different convex shapes to look like a human so that the shape looks like a south-park character. However, it was pretty hard to do it. What I am trying to do next is to make texture for each shape.</p>
<p><img class="aligncenter" title="character" src="http://themeparkradio.files.wordpress.com/2010/09/eric_theodore_cartman_southpark.jpg" alt="" width="273" height="240" /></p>
<p>&nbsp;</p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/QyWatB4hV04" frameborder="0" allowFullScreen="true"> </iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=212</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spatial Media: Assignment4</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=205</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=205#comments</comments>
		<pubDate>Wed, 27 Feb 2013 04:33:10 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Spatial Media]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=205</guid>
		<description><![CDATA[Prototype 1 : One-to-One Prototype 2: Many-to-One Research While I was researching about temporary interactive installations that consist with technology, I found my  Augmented Reality projects interesting. Augmented Reality is a new technology that attracts many audience, so it is useful for advertising events. I found this event, held in South Korea for just 9 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Prototype 1 : One-to-One</strong></p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/4hDnCoRcoXg" frameborder="0" allowFullScreen="true"> </iframe></p>
<p><strong>Prototype 2: Many-to-One</strong></p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/xShYcE_GUVU" frameborder="0" allowFullScreen="true"> </iframe></p>
<p style="text-align: left;"><strong>Research</strong></p>
<p style="text-align: left;">While I was researching about temporary interactive installations that consist with technology, I found my  Augmented Reality projects interesting. Augmented Reality is a new technology that attracts many audience, so it is useful for advertising events. I found this event, held in South Korea for just 9 days in 2011. A record company launched this event in order to advertise the newest album of one of its singers. In the event, audience is invited into a black square zone, where the users are detected, in order to learn dance with virtual singers. One or more users are welcome to join the activity. Although the videos were pre-recorded by the artists to fit the exhibition, fans are able to experience the optical illusion as if singers are actually on location and dancing with them. The target audience for the event seems to be all-range of ages from children to adults.</p>
<p>According to the article about the event, it was very successful in a way to invite more audience to experience such an interaction.</p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/mRlrUNgG-P4" frameborder="0" allowFullScreen="true"> </iframe></p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/uuJA3UKShDM" frameborder="0" allowFullScreen="true"> </iframe></p>
<p>You can find more information <a href="http://enewsworld.mnet.com/enews/contents.asp?idx=12219" target="_blank">HERE</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=205</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nature of Code: Assignment4</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=201</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=201#comments</comments>
		<pubDate>Wed, 27 Feb 2013 03:59:45 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Nature of Code]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=201</guid>
		<description><![CDATA[Inspired by Camille Utterback and Romy Achituv&#8217;s Text Rain, I wanted to develop rain dropping using PVectors and Particle Systems. Currently, The rain drops from the top center, and it lands on user&#8217;s body. A mouse click creates wind to the right side. I will upload code later! &#160;]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="textrain" src="http://www.designtripper.com/wp-content/uploads/2011/04/IMG_6665.jpg" alt="" width="393" height="262" /></p>
<p>Inspired by Camille Utterback and Romy Achituv&#8217;s Text Rain, I wanted to develop rain dropping using PVectors and Particle Systems. Currently, The rain drops from the top center, and it lands on user&#8217;s body. A mouse click creates wind to the right side.</p>
<p style="text-align: center;"><a href="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-26-at-10.44.08-PM.png"><img class="aligncenter  wp-image-202" title="Screen Shot 2013-02-26 at 10.44.08 PM" src="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-26-at-10.44.08-PM.png" alt="" width="385" height="303" /></a></p>
<p style="text-align: center;"><a href="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-26-at-10.44.45-PM.png"><img class="aligncenter  wp-image-203" title="Screen Shot 2013-02-26 at 10.44.45 PM" src="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-26-at-10.44.45-PM.png" alt="" width="401" height="319" /></a></p>
<p style="text-align: center;">
<p style="text-align: left;">I will upload code later!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=201</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Small is Beautiful: Assignment2</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=197</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=197#comments</comments>
		<pubDate>Mon, 25 Feb 2013 07:30:39 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Small is Beautiful]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=197</guid>
		<description><![CDATA[1) Citizen Science Projects DIY &#38; Cell Slider Similarities Both let users to go through experiments step by step Users are allowed to start and finish whenever they want to. They all have simple &#8220;one-click&#8221; interface so that user can follow easily. DIY &#38; Cell Slider Differences Cell Slider has more specific tutorial than DIY. [...]]]></description>
			<content:encoded><![CDATA[<p>1) Citizen Science Projects</p>
<p>DIY &amp; Cell Slider Similarities</p>
<ul>
<li>Both let users to go through experiments step by step</li>
<li>Users are allowed to start and finish whenever they want to.</li>
<li>They all have simple &#8220;one-click&#8221; interface so that user can follow easily.</li>
</ul>
<div></div>
<div>DIY &amp; Cell Slider Differences</div>
<ul>
<li>Cell Slider has more specific tutorial than DIY.</li>
<li>DIY contains some of vague images that users can often get confused with. On the other hand, Cell Slider contains much graphically vivid images.</li>
<li>DIY allows only one type of exercise with the same kind of data, while Cell Slider offers three kinds of exercises with different kinds of data.</li>
</ul>
<p>2) Chosen Scientist.</p>
<p>After talking to Francois and Peiqi, I&#8217;ve decided to (hopefully) work with Paul Chaikin on DNA Origami.</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=197</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nature of Code: Assignment3</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=192</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=192#comments</comments>
		<pubDate>Wed, 20 Feb 2013 00:58:39 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Nature of Code]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=192</guid>
		<description><![CDATA[General Idea For Oscillation homework, I was inspired by a cartoon-like surfing wave. I decided to create generating wave form with a click button. I wanted to create a surfing man along with the wave, but I didn&#8217;t have time to do it. I will try to make one later. &#160; Inspiration &#160;   &#160; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>General Idea</strong></p>
<p>For Oscillation homework, I was inspired by a cartoon-like surfing wave. I decided to create generating wave form with a click button. I wanted to create a surfing man along with the wave, but I didn&#8217;t have time to do it. I will try to make one later.</p>
<p>&nbsp;</p>
<p><strong>Inspiration</strong></p>
<p>&nbsp;</p>
<p><img class="alignnone" title="wave" src="http://us.123rf.com/400wm/400/400/magenta10/magenta101206/magenta10120600004/13904507-cartoon-wave-abstract-decorative-background.jpg" alt="" width="242" height="242" /> <img class="alignnone" title="wave2" src="http://static2.bigstockphoto.com/thumbs/7/6/5/large2/5671850.jpg" alt="" width="315" height="256" /></p>
<p>&nbsp;</p>
<p><strong>Screenshots</strong></p>
<p style="text-align: center;"><a href="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-19-at-7.45.13-PM.png"><img class="aligncenter  wp-image-193" title="Screen Shot 2013-02-19 at 7.45.13 PM" src="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-19-at-7.45.13-PM.png" alt="" width="462" height="250" /></a></p>
<p style="text-align: center;"><a href="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-19-at-7.45.23-PM.png"><img class="aligncenter  wp-image-194" title="Screen Shot 2013-02-19 at 7.45.23 PM" src="http://itp.nyu.edu/~jyp323/ju/wp-content/uploads/2013/02/Screen-Shot-2013-02-19-at-7.45.23-PM.png" alt="" width="450" height="244" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;"><strong>Video</strong></p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/kuA_M5Efj5E" frameborder="0" allowFullScreen="true"> </iframe></p>
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;"><a href="http://itp.nyu.edu/~jyp323/wave_hm3/wave_hm3.pde" target="_blank"><strong>Code HERE</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=192</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nature of Code: Assignment2</title>
		<link>http://itp.nyu.edu/~jyp323/ju/?p=186</link>
		<comments>http://itp.nyu.edu/~jyp323/ju/?p=186#comments</comments>
		<pubDate>Wed, 13 Feb 2013 01:35:38 +0000</pubDate>
		<dc:creator>jyp323</dc:creator>
				<category><![CDATA[Nature of Code]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~jyp323/ju/?p=186</guid>
		<description><![CDATA[&#160; I have used Attraction + wind + gravity for making a kite flying over wind. Whenever mousePressed, blue sky appears on the sketch, and it blows wind to right and up. Therefore, a girl&#8217;s kite flies over the wind! Whenever mouseReleased, there is no more of blue sky, and kite moves along the attraction [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>I have used Attraction + wind + gravity for making a kite flying over wind. Whenever mousePressed, blue sky appears on the sketch, and it blows wind to right and up. Therefore, a girl&#8217;s kite flies over the wind! Whenever mouseReleased, there is no more of blue sky, and kite moves along the attraction to the girl and the effects of the previous wind.</p>
<p style="text-align: center;"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/Z52KclLr8_c" frameborder="0" allowFullScreen="true"> </iframe></p>
<p>&nbsp;</p>
<p><strong>Code</strong></p>
<p>&nbsp;</p>
<pre>Kite k;
Attractor a;
void setup(){
  size(600, 600);
  k = new Kite();
  a = new Attractor();

}

void draw(){
  background(255);
  noStroke();

  rect(0, 0, width, height/2.5);
  PVector gravity = new PVector(0, -0.020);
  PVector wind = new PVector(0.015, 0);
  PVector force = a.attract(k);

  if(mousePressed){
    k.applyForce(gravity);
    k.applyForce(wind);
    fill(139, 239, 255);
  }

  rect(0, 0, width, height/2.5);
  k.applyForce(force);
  k.update();
  k.display();
  a.display(k);
  k.checkEdges();

}</pre>
<div></div>
<pre>class Attractor{
  float mass;
  float G;
  PVector location;
  PImage girl;
  Attractor(){
    location = new PVector(width/2, height/2);
    girl = loadImage("girl.png");
    mass=20;
    G =1;

  }

  PVector attract(Kite k){
    PVector force = PVector.sub(location, k.location);
    float d = force.mag();
    d = constrain(d, 5.0, 25.0);
    force.normalize();
    float strength = (G * mass * k.mass) / (d * d);
    force.mult(strength);
    return force;
  }

  void display(Kite k){
    //ellipseMode(CENTER);
    stroke(0);
    noFill();
    image(girl, location.x-50, location.y);
    curve(location.x+35, location.y+50, location.x+20, location.y+15, k.getLoc().x+30, k.getLoc().y+20, k.getLoc().x+30, k.getLoc().y-20);
  }
}</pre>
<div></div>
<pre>class Kite{
  PImage kite;
  PVector location;
  PVector velocity;
  PVector acceleration;
  float mass;

  Kite(){
    kite = loadImage("kite.png");
    location = new PVector(width/2, height/2);
    velocity = new PVector(1, 0);
    acceleration = new PVector(0,0);
    mass = 1;
  }

  void applyForce(PVector force){
    PVector f = PVector.div(force, mass);
    acceleration.add(f);
  }

  void update(){
    velocity.add(acceleration);
    location.add(velocity);
    acceleration.mult(0);
  }

  void display(){
    image(kite, location.x, location.y);
  }

  PVector getLoc(){
    PVector newLoc = new PVector(location.x, location.y);
    return newLoc;
  }

  void checkEdges(){
    if(location.x &gt; width){
      location.x = width;
      velocity.x *= -1;
    } else if (location.x &lt; 0){       velocity.x *= -1;       location.x = 0;     }          if(location.y &gt; height){
      velocity.y *= -1;
      location.y = height;
    }
  }
}</pre>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~jyp323/ju/?feed=rss2&#038;p=186</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
