<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
        <title>skyra.github.com</title>
        <description>skyra.github.com - Cameron Ketcham</description>
        <link>http://skyra.github.io/rss.xml</link>
        <link>http://skyra.github.io</link>
        <lastBuildDate>2023-04-27T00:43:57+00:00</lastBuildDate>
        <pubDate>2023-04-27T00:43:57+00:00</pubDate>
        <ttl>1800</ttl>


        <item>
                <title>Skyra Elements</title>
                <description>&lt;p&gt;I’m starting to work on the beginning of a tool to help make controling diy IOT devices with google home a possibility. To control lights, I have emuluated a Phillips Hue hub, but it’s very limiting. I’d like a way to build any device that google can potentially control (lights, thermostats, switches, outlets, scenes) and then just control it. Google requires you jump through a few hurdles like authentication in order to do it. I’m starting to work on &lt;a href=&quot;https://github.com/cketcham/skyra-elements&quot;&gt;Skyra Elements&lt;/a&gt; which is a combination of firebase functions and auth that should simplify the process of connecting devices to google home. More to come!&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/skyra-elements</link>
                <guid>http://skyra.github.io/blog/skyra-elements</guid>
                <pubDate>2017-08-13T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Bird</title>
                <description>&lt;p&gt;&lt;img src=&quot;https://lh3.googleusercontent.com/-bxY_3K2J3gE/U3wTrdJSrgI/AAAAAAAAlV4/8qlpMD_k27o/w1700-h1276-no/IMG_20140520_185346-MOTION.gif&quot; /&gt;&lt;/p&gt;
</description>
                <link>http://skyra.github.io/art/bird</link>
                <guid>http://skyra.github.io/art/bird</guid>
                <pubDate>2014-05-20T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Rubik's cube moment</title>
                <description>&lt;p&gt;Just some pictures from my Narrative Clip&lt;/p&gt;

&lt;div id=&quot;plusgallery&quot; data-userid=&quot;104703535905863588406&quot; data-album-id=&quot;6000527198958651201&quot; data-type=&quot;google&quot;&gt;&lt;/div&gt;

</description>
                <link>http://skyra.github.io/art/rubiks-cube-moment</link>
                <guid>http://skyra.github.io/art/rubiks-cube-moment</guid>
                <pubDate>2014-04-10T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Random Pictures</title>
                <description>&lt;div id=&quot;plusgallery&quot; data-album-id=&quot;fXd18&quot; data-type=&quot;imgur&quot;&gt;&lt;/div&gt;
</description>
                <link>http://skyra.github.io/art/random-pictures</link>
                <guid>http://skyra.github.io/art/random-pictures</guid>
                <pubDate>2014-03-16T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>OSCeletonWrapper</title>
                <description>&lt;h4 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h4&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/cketcham/OSCeletonWrapper&quot;&gt;OSCeletonWrapper&lt;/a&gt; is a processing library which wraps OSCeleton and makes it easy to use Skeleton data inside processing. The easiest way to install &lt;a href=&quot;https://github.com/cketcham/OSCeletonWrapper&quot;&gt;OSCeletonWrapper&lt;/a&gt; is clone the repo into the processing library directory. The user library directory is inside the libraries folder in your sketch directory. Use this command to clone the repo:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-java&quot; data-lang=&quot;java&quot;&gt;&lt;span class=&quot;n&quot;&gt;git&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;clone&lt;/span&gt; &lt;span class=&quot;nl&quot;&gt;https:&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;//github.com/cketcham/OSCeletonWrapper&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;or download a zip file from here:  &lt;a href=&quot;https://github.com/cketcham/OSCeletonWrapper/archive/master.zip&quot;&gt;https://github.com/cketcham/OSCeletonWrapper/archive/master.zip&lt;/a&gt;&lt;/p&gt;

&lt;h4 id=&quot;examples&quot;&gt;Examples&lt;/h4&gt;
&lt;p&gt;In order to use this library with your kinect, you will need OSCeleton set up and sending messages. Information on how to get everything working can be found here: &lt;a href=&quot;/blog/Kinect-Processing&quot;&gt;How to get Kinect Data into Processing&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Two examples are included with this library&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/cketcham/kinect_force&quot;&gt;kinect_force&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/cketcham/DrawingTree&quot;&gt;DrawingTree&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;More information about both can be found here:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;/blog/Kinect-Force&quot;&gt;Kinect Force&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;/art/Life-of-a-Tree&quot;&gt;Life as a Tree&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;/blog/Processing-Tree-Generation&quot;&gt;Tree Generation in Processing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <link>http://skyra.github.io/blog/OSCeletonWrapper</link>
                <guid>http://skyra.github.io/blog/OSCeletonWrapper</guid>
                <pubDate>2013-09-22T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>What a great first day at Maker Faire!</title>
                <description>&lt;p&gt;If you stopped by today, glad to see you! If you haven’t been by yet, come check us out in Zone A in the Viscusi Gallery. If you are looking for the source for the demos, I’ll post more info soon, so stay tuned…&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/At-Maker-Faire</link>
                <guid>http://skyra.github.io/blog/At-Maker-Faire</guid>
                <pubDate>2013-09-21T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Maker Faire NYC This Weekend</title>
                <description>&lt;p&gt;I’m excited to show what I’ve done with the kinect and help other learn how to do it to. I’ll update here with information about how to find my booth. Hope to see you there!&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/Maker-Faire-this-weekend</link>
                <guid>http://skyra.github.io/blog/Maker-Faire-this-weekend</guid>
                <pubDate>2013-09-15T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>_three.js playGnd</title>
                <description>&lt;p&gt;&lt;a href=&quot;http://threejsplaygnd.brangerbriz.net/gui/&quot;&gt;http://threejsplaygnd.brangerbriz.net/gui/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It’s a cool way to play around with webGL and actually create something using a combination of programming and playing with sliders and options.&lt;/p&gt;

&lt;p&gt;here is what I made:
&lt;a href=&quot;http://threejsplaygnd.brangerbriz.net/s/?id=128&quot;&gt;http://threejsplaygnd.brangerbriz.net/s/?id=128&lt;/a&gt;&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/_threejs-playgnd</link>
                <guid>http://skyra.github.io/blog/_threejs-playgnd</guid>
                <pubDate>2013-08-23T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Smoke Clouds</title>
                <description>&lt;p&gt;&lt;img src=&quot;https://lh3.googleusercontent.com/-IIh_bkUe4o8/Uhwqp8ZloVI/AAAAAAAAF8A/PWD88gg4OGE/w1898-h1424-no/IMG_20130822_132911.jpg&quot; alt=&quot;Smoke Clouds&quot; /&gt;&lt;/p&gt;
</description>
                <link>http://skyra.github.io/art/smoke-clouds</link>
                <guid>http://skyra.github.io/art/smoke-clouds</guid>
                <pubDate>2013-08-22T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Maker Faire NYC&#58; Hacking the Kinect for artistic projects</title>
                <description>&lt;p&gt;I’m proud to say that I was accepted to showcase my work at Maker Faire in NYC from September 20th to the 22nd at the New York Hall of Science in Queens.&lt;/p&gt;

&lt;p&gt;
&lt;center&gt;&lt;a href=&quot;http://makerfaire.com&quot;&gt;
&lt;img src=&quot;http://makerfaire.files.wordpress.com/2013/07/mf13ny_badge.jpg&quot; alt=&quot;New York Maker Faire Web Badge&quot; style=&quot;width:150px;height:150px&quot; border=&quot;0&quot; /&gt;
&lt;/a&gt;&lt;/center&gt;
&lt;/p&gt;

&lt;p&gt;Come visit me! As my title says, I will be showing the tools and libraries I use to play with the kinect. I will also be showing the pieces I have created such as &lt;a href=&quot;/art/Life-of-a-Tree&quot;&gt;Life as a Tree&lt;/a&gt; and &lt;a href=&quot;/blog/Kinect-Force&quot;&gt;Kinect Force&lt;/a&gt;, as well as a few new things I have been working on. &lt;a href=&quot;http://makerfairenyc.eventbrite.com/&quot;&gt;Buy tickets here&lt;/a&gt; (Let me know if you are planning on going, I can probably get you a discounted ticket). I hope to see you there!&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/Maker-Faire-NYC</link>
                <guid>http://skyra.github.io/blog/Maker-Faire-NYC</guid>
                <pubDate>2013-08-06T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Life of a Tree</title>
                <description>&lt;p&gt;This is my second piece for &lt;strong&gt;&lt;a href=&quot;https://www.facebook.com/BushwickFirstFriday&quot;&gt;Bushwick First Friday&lt;/a&gt;&lt;/strong&gt;. The theme &lt;em&gt;Awakening&lt;/em&gt;, was inspired by the coming of Spring.&lt;/p&gt;

&lt;p&gt;Here are the previous blog posts related to this piece if you are interested in reading them&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;/blog/Processing-Tree-Generation&quot;&gt;Processing Tree Generation&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;/blog/Kinect-Processing&quot;&gt;Kinect Processing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hopefully you came and had a chance to play with it!&lt;/p&gt;

&lt;div id=&quot;gallery&quot; data-toggle=&quot;modal-gallery&quot; data-target=&quot;#modal-gallery&quot;&gt;

  &lt;a href=&quot;http://pcdn.500px.net/30347497/add3827d81ef9cec7bb2606df1a715d100b52e22/4.jpg&quot; data-gallery=&quot;gallery&quot;&gt;&lt;img style=&quot;width:auto;display:inline;&quot; src=&quot;http://pcdn.500px.net/30347497/add3827d81ef9cec7bb2606df1a715d100b52e22/2.jpg&quot; /&gt;&lt;/a&gt;

  &lt;a href=&quot;http://pcdn.500px.net/30347561/afb078538e3bb358361ecea00f629cbd8b6122b6/4.jpg&quot; data-gallery=&quot;gallery&quot;&gt;&lt;img style=&quot;width:auto;display:inline;&quot; src=&quot;http://pcdn.500px.net/30347561/afb078538e3bb358361ecea00f629cbd8b6122b6/2.jpg&quot; /&gt;&lt;/a&gt;

  &lt;a href=&quot;http://pcdn.500px.net/30347535/dbd888e47af58d28380559b70264c70b736a3a73/4.jpg&quot; data-gallery=&quot;gallery&quot;&gt;&lt;img style=&quot;width:auto;display:inline;&quot; src=&quot;http://pcdn.500px.net/30347535/dbd888e47af58d28380559b70264c70b736a3a73/2.jpg&quot; /&gt;&lt;/a&gt;

  &lt;a href=&quot;http://pcdn.500px.net/30347547/b0aaacc22a7461e16bc7f256a2f9537207d0c236/4.jpg&quot; data-gallery=&quot;gallery&quot;&gt;&lt;img style=&quot;width:auto;display:inline;&quot; src=&quot;http://pcdn.500px.net/30347547/b0aaacc22a7461e16bc7f256a2f9537207d0c236/2.jpg&quot; /&gt;&lt;/a&gt;

  &lt;a href=&quot;http://pcdn.500px.net/30347565/79bb808aad879ad4665d5a09da0bd3149baebf46/4.jpg&quot; data-gallery=&quot;gallery&quot;&gt;&lt;img style=&quot;width:auto;display:inline;&quot; src=&quot;http://pcdn.500px.net/30347565/79bb808aad879ad4665d5a09da0bd3149baebf46/2.jpg&quot; /&gt;&lt;/a&gt;

  &lt;a href=&quot;http://pcdn.500px.net/30347563/dace67b381514ca08fa969580b9a253d3d76d943/4.jpg&quot; data-gallery=&quot;gallery&quot;&gt;&lt;img style=&quot;width:auto;display:inline;&quot; src=&quot;http://pcdn.500px.net/30347563/dace67b381514ca08fa969580b9a253d3d76d943/2.jpg&quot; /&gt;&lt;/a&gt;

&lt;/div&gt;

&lt;p&gt;I also took a few video clips and put them together to make a short video.&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/4cpluNd3PI4?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;
</description>
                <link>http://skyra.github.io/art/Life-of-a-Tree</link>
                <guid>http://skyra.github.io/art/Life-of-a-Tree</guid>
                <pubDate>2013-04-05T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Kinect Force</title>
                <description>&lt;p&gt;Building upon my last post about &lt;a href=&quot;/blog/Kinect-Processing&quot;&gt;Kinect and Processing&lt;/a&gt;, I decided it would be fun to add some particle systems to a sketch that could be controlled by the user’s skeleton. I ended up picking &lt;a href=&quot;http://toxiclibs.org/&quot;&gt;toxiclibs.org&lt;/a&gt; since it seemed to be the most fully featured library for using physics and having particles interact.&lt;/p&gt;

&lt;p&gt;I set up a simple particle system with various forces and added some attraction to the hands. This was the result.&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/KLACA8kUFCc?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;If you are interested in trying it out yourself, get the OSCeletonWrapper processing library and the code for this example here: &lt;a href=&quot;https://github.com/cketcham/kinect_force&quot;&gt;https://github.com/cketcham/kinect_force&lt;/a&gt;&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/Kinect-Force</link>
                <guid>http://skyra.github.io/blog/Kinect-Force</guid>
                <pubDate>2013-04-03T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>HTML5 apps vs Native Apps</title>
                <description>&lt;p&gt;I’ve always felt a struggle between HTML5 apps, and native apps. There are many great apps which are written with HTML5 which use &lt;a href=&quot;http://cordova.apache.org/&quot;&gt;Cordova&lt;/a&gt;, &lt;a href=&quot;http://jquerymobile.com/&quot;&gt;jQuery Mobile&lt;/a&gt;, or just something like &lt;a href=&quot;http://twitter.github.com/bootstrap/&quot;&gt;Boostrap&lt;/a&gt;. And there are equally great apps which were built for native phone clients. I think overall the choice of whether to write an app with HTML5 or to write a native app really depends on the app you want to write. But ignoring that, this is what I think about the HTML5 vs. native debate.&lt;/p&gt;

&lt;p&gt;I’m an native android programmer so that probably plays into my bias, but I don’t think an application written with HTML5 (the way we do now) can ever be as good as native applications since you can’t take advantage of the design patterns for specific devices easily. And if you decide to invest the time to create a different experience for each device, you might as well have just built a native app in the first place!&lt;/p&gt;

&lt;p&gt;I think it really comes down to the amount of time you can put into an app. HTML5 is nice since you don’t need to put as much time into it since it will work on multiple devices. But since you don’t put as much time into the app, it won’t be as polished as it could be if you had spent the time making one app per device.&lt;/p&gt;

&lt;p&gt;I think eventually another layer will be created that can create easily customizable interfaces on an individual level. There is less of a linkage between how the server and the clients behave since they can communicate using JSON messages or something similar. So multiple different clients can use the same server api to get the data. The problem is that the visualization is usually all on the client.&lt;/p&gt;

&lt;p&gt;Imagine there was another layer in between the data from the server and the client ui. It’s a very similar idea to the way atom xml works for blogs. If you have an rss reader, you can read data from websites and blogs and it can be formatted any way the user wants since the xml specifies the structure of the data to be viewed, but the reader specifies how the ui should look. If there was something similar for apps, you could have a general device like and iPhone or Android or a desktop that would read data from an app, but it would automatically be formatted in a consistent way depending on the device. So as an app developer you would only have to develop the middle layer. You could take data from existing servers (or create new servers if you needed to) and format it in this universal app layer. Then device manufacturers (or the end user) would build in readers to the devices themselves which could handle any app written in this universal app layer.&lt;/p&gt;

&lt;p&gt;Although maybe this isn’t possible though since applications can be so different.. unlike blog posts.&lt;/p&gt;

&lt;p&gt;And maybe HTML5 will become this eventually. HTML5 has the capabilities to access different features of phones. All that is needed, is an app/reader/browser which will render the pages with native ui components and design.&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/html-vs-native</link>
                <guid>http://skyra.github.io/blog/html-vs-native</guid>
                <pubDate>2013-03-22T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>How to setup Microsoft Kinect on OS X 10.10 with Processing</title>
                <description>&lt;p&gt;The Kinect is an awesome tool to get skeleton data. &lt;a href=&quot;http://processing.org&quot;&gt;Processing&lt;/a&gt; is an awesome tool for creating visualizations. Combined they can be used to make cool interactive visualizations.&lt;/p&gt;

&lt;p&gt;Since OpenNI has been taken down, the best source I’ve found for setting up the kinect is here: &lt;a href=&quot;http://blog.nelga.com/setup-microsoft-kinect-on-mac-os-x-10-9-mavericks/&quot;&gt;http://blog.nelga.com/setup-microsoft-kinect-on-mac-os-x-10-9-mavericks/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once everything is installed, you can use &lt;a href=&quot;https://github.com/Sensebloom/OSCeleton&quot;&gt;OSCeleton&lt;/a&gt; to send OSC messages to processing.&lt;/p&gt;

&lt;p&gt;You can use &lt;a href=&quot;https://github.com/cketcham/OSCeletonWrapper&quot;&gt;OSCeletonWrapper&lt;/a&gt; to help read those messages in processing.&lt;/p&gt;

&lt;p&gt;more info &lt;a href=&quot;/blog/OSCeletonWrapper&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/Kinect-Processing</link>
                <guid>http://skyra.github.io/blog/Kinect-Processing</guid>
                <pubDate>2013-03-17T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Seed Animation</title>
                <description>&lt;p&gt;I tried an animation workflow.. I knew animation was difficult, but I have a newfound respect for animators everywhere. Enjoy my first attempt at an animation!&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/EX0T2PUDX70?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;
</description>
                <link>http://skyra.github.io/art/Seed-Animation</link>
                <guid>http://skyra.github.io/art/Seed-Animation</guid>
                <pubDate>2013-03-15T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Tree Generation in Processing</title>
                <description>&lt;p&gt;I’m working on a &lt;a href=&quot;http://processing.org&quot;&gt;processing&lt;/a&gt; sketch which generates trees of different heights randomly. I started from this sketch: &lt;a href=&quot;http://www.openprocessing.org/sketch/2235&quot;&gt;http://www.openprocessing.org/sketch/2235&lt;/a&gt;. I like the way it looks, but I want something that will grow and is animatable.&lt;/p&gt;

&lt;p&gt;Let’s start from the main sketch code.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-java&quot; data-lang=&quot;java&quot;&gt;&lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tree&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
 
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;setup&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1024&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;640&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;P2D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;colorMode&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RGB&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;background&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;192&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;smooth&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
 
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;draw&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
 
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;keyReleased&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;background&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;192&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
 
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;mouseReleased&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;tree&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mouseX&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mouseY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;render&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Since I want the sketch to be animatable, I need to set the rendering engine to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;P2D&lt;/code&gt;. Using this rendering engine leaves the lines a little jagged, so I also set the smoothness to 8 with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;smooth(8)&lt;/code&gt;. I also think the size of the drawing is a little small so I increase the size to 1024x640 so it’s twice as big.&lt;/p&gt;

&lt;p&gt;The way the drawing code works is that each time the mouse is clicked, a new tree is created and drawn to the screen. No other operations are done in the drawing loop. Since I want to be able to animate the motion of the tree, I have to be able to continuously draw the tree each frame, so I need to move the call &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tree.render()&lt;/code&gt; into the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;draw()&lt;/code&gt; function.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-java&quot; data-lang=&quot;java&quot;&gt;&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;draw&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;background&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;192&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;render&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;This makes it redraw the tree each time, but it is madness! Each frame, it will draw a new tree (with branches in different places) at the same x position on the screen. At 60 frames a second that is a lot of trees thrashing about! To prevent the code from generating a new random tree each frame, I need to use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;randomSeed()&lt;/code&gt;. By setting a seed, I am ensuring each successive call to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;random()&lt;/code&gt; will return random numbers in the same order. Here is the code for the tree which draws each frame using the same random numbers:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-java&quot; data-lang=&quot;java&quot;&gt;&lt;span class=&quot;kd&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;steps&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
   
  &lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;steps&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
   
  &lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;h_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;h_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;steps&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
   
  &lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;render&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;randomSeed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;stroke&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;HALF_PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
   
  &lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;strokeWeight&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cos&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sin&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;stroke&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.6&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.6&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.6&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
    &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;155&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;stroke&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;192&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;strokeWeight&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;point&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
    &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Ok cool, but I also want to be able to make the tree grow. For now I will link it to the vertical movement of the mouse. I can just change the height of the tree &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;h&lt;/code&gt; in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;render()&lt;/code&gt; function based on the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mouseY&lt;/code&gt; variable. Here is the new function:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-java&quot; data-lang=&quot;java&quot;&gt;&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;render&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;randomSeed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mouseY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;170&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;stroke&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;HALF_PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Uh oh. It almost works. When the mouse is not moving the same tree draws every frame, but when I move the mouse up and down to change the height of the tree, the branches move. Not what I want. This is caused because the tree is being drawn using recursion, i.e. depth first using the program stack. This means it draws the trunk, then draws the first branch, then draws that branches first branch all the way down to a leaf. Then it goes back up one step and draws the next leaf. Learn more about &lt;a href=&quot;http://en.wikipedia.org/wiki/Depth-first_search&quot;&gt;Depth First Search&lt;/a&gt; on Wikipedia! Since the order of the random calls is set using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;randomSeed()&lt;/code&gt; when it draws a bigger tree, the calls to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;random()&lt;/code&gt; on the smaller tree no longer apply to the same branches to the bigger tree, since it adds branches in the middle. I can fix this by changing the order of branch drawing to &lt;a href=&quot;http://en.wikipedia.org/wiki/Breadth-first_search&quot;&gt;Breadth First&lt;/a&gt;. This will ensure that the random calls always apply to the same branches. Breadth first will draw the trunk, all of is branches, all of the branches’ branches, etc until it gets to the final branches and all the leaves.&lt;/p&gt;

&lt;p&gt;That brings me to the final code which I am going to use for now.&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/MiZYfwMA_Ao?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;treeSketch.pde&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-java&quot; data-lang=&quot;java&quot;&gt;&lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
 
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;setup&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1024&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;640&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;P2D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;colorMode&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RGB&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;background&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;192&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;smooth&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
 
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;draw&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;background&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;192&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tree&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;render&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;frame&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setTitle&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;frameRate&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;fps&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
 
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;keyReleased&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
 
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;mouseReleased&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;tree&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mouseX&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mouseY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Tree.pde&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-java&quot; data-lang=&quot;java&quot;&gt;&lt;span class=&quot;kd&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;steps&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;

  &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;


  &lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;steps&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;

  &lt;span class=&quot;nc&quot;&gt;Tree&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;h_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;h_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;steps&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;

  &lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;render&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;randomSeed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    
    &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mouseY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;170&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;h&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;

    &lt;span class=&quot;n&quot;&gt;stroke&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;HALF_PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;

  &lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;

    &lt;span class=&quot;n&quot;&gt;branches&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;branches&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
      
      &lt;span class=&quot;nc&quot;&gt;Branch&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;branches&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;branches&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;remove&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
      
      &lt;span class=&quot;n&quot;&gt;strokeWeight&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
      &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cos&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sin&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;stroke&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
  
      &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;branches&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.6&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)));&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;branches&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.6&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)));&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;branches&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;PI&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.6&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)));&lt;/span&gt;
      &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt; 
      &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;155&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;stroke&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;192&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;strokeWeight&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
        &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;offx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
        &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;offy&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;point&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;offx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ny&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;offy&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
      &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
  
  &lt;span class=&quot;kd&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Branch&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
     &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
     &lt;span class=&quot;kd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;Branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
       &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
       &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
       &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
       &lt;span class=&quot;n&quot;&gt;s&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
     &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;

  &lt;span class=&quot;nc&quot;&gt;ArrayList&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;Branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;branches&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;ArrayList&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;Branch&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;The last thing I need to fix is the drawing of the blossoms since they are constantly jumping around. This is caused by the same problem I experienced when drawing the branches. I could just set another random seed before I draw the leaves to ensure they are always drawn the same way like the branches are. But for now I like what I’ve done.&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/Processing-Tree-Generation</link>
                <guid>http://skyra.github.io/blog/Processing-Tree-Generation</guid>
                <pubDate>2013-03-10T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Live 9 release event</title>
                <description>&lt;p&gt;I have used &lt;a href=&quot;https://www.ableton.com/en/live/new-in-9/&quot;&gt;Ableton Live&lt;/a&gt; for a while to produce music and I really like it. The flow for building song structures, adding effects, and playing with controllers is very smooth and natural. Although the instruments provided by Live are a little lacking in functionality and depth, I love to use Live to play different VSTs or Reason (as an external instrument). Nothing else compares to Live for controlling audio or midi streams and adding effects. Here is a little intro video to live if you don’t know anything about it.&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/WsJwxJj0tXo?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;I went to the preview event of Live 9 and Push (a controller built for Live 9) at Tekserve in NYC on March 5th. They were really trying to promote the Push controller as an instrument, saying you don’t even need to look at the computer to make entire songs. They had a few good performers who demonstrated the functionality of the device and I’d say I agree for the most part. I still think final editing and mastering will be easier to do in Live on your laptop, but being able to create ideas and just flow from one thing to the next is an invaluable tool offered by the device. I wonder if it will be possible to configure different midi hardware to take advantage of some of the new features in Live 9 which make the Push so appealing.&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/5obV0TAADhE?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;The push adds many features although two of them caught my eye and seem like they would be fun to play with. One is the ability to add notes to a clip of different lengths easily using the top half of the 64x64 grid in the same way you would program a drum machine. The second feature is the ability to easily browse to different key signatures to play notes. Both of these additions are nothing new as people have written programs for the &lt;a href=&quot;http://monome.org&quot;&gt;monome&lt;/a&gt; which do the same thing. The main difference is the level of integration with Live is much better.&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/Live-9</link>
                <guid>http://skyra.github.io/blog/Live-9</guid>
                <pubDate>2013-03-07T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Humble Bundle 5</title>
                <description>&lt;p&gt;I really love the &lt;a href=&quot;http://humblebundle.com&quot;&gt;humble bundle&lt;/a&gt; downloads. Especially the releases they have for Android. You can pay what you want and they are always worth what you pay. I haven’t even gotten past the first game that I downloaded, &lt;a href=&quot;http://superhexagon.com/&quot;&gt;Super Hexagon&lt;/a&gt;. You move the triangle between the edges in different styles of levels. Its such a simple game, but it is extremely fun and challenging.&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/2sz0mI_6tLQ?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;Here is a quick trailer for the other games included in the bundle. Most of them look pretty fun!&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/NQfkrNHbs1Q?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/Humble-Bundle-5</link>
                <guid>http://skyra.github.io/blog/Humble-Bundle-5</guid>
                <pubDate>2013-03-05T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Mouse On Mars</title>
                <description>&lt;p&gt;I haven’t listened to Mouse on Mars in ages, but they used to be one of my favorite bands. Mouse on Mars is a duo based out of Germany made up of Jan St. Werner and Andi Toma. They have been making electronic music since 1993. I was first introduced to them by an electronic music teacher I had while I was in high school. I instantly fell in love with the glitchy electronic sound they create. Two of my favorite songs are &lt;em&gt;Wipe That Sound&lt;/em&gt; and &lt;em&gt;Duul&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;
  &lt;iframe width=&quot;99%&quot; height=&quot;166&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F77385426&amp;amp;color=333333&amp;amp;auto_play=false&amp;amp;show_artwork=false&quot;&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/UCj2hcZuLJs?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;I randomly discovered Mouse on Mars would be playing in NYC the morning of the show. Luckily I didn’t have any plans since I have been dying to seem them perform live for quite a long time. I wanted to see them perform the last time they toured the US 6 years ago, but wasn’t able to. Talk about a long wait! The show started out with a set by Soft Circle, a local NYC group, with Hisham Bharoocha and Ben Vida. They had an interesting sound composed mostly of hardware synths and looping effects along with some looped vocals and triggered drums.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://i.imgur.com/fDry395l.jpg&quot; alt=&quot;Soft Circle&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Then Mouse on Mars took the stage. They played a lot of new songs which I hadn’t heard yet. I really need to get their new album to take a listen, but based on what I heard during they show, they seem to have merged their glitchy and quirky sound with electro style dance beats. They have always had a knack for integrating weird electronic sounds and effects with a more mainstream pop style.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://i.imgur.com/nFEyFX2l.jpg&quot; alt=&quot;Mouse on Mars&quot; /&gt;&lt;/p&gt;

&lt;p&gt;
&lt;div style=&quot;position: relative;width: 100%;max-height:390px;max-width:640px;&quot;&gt;
  &lt;div style=&quot;padding-bottom: 60%&quot;&gt;
  &lt;/div&gt;
  
  &lt;div style=&quot;position: absolute;top: 0;bottom: 0;left: 0;right: 0;&quot;&gt;
    &lt;iframe style=&quot;width:100%;height:100%;&quot; src=&quot;http://www.youtube.com/embed/E27_3IHz2HA?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;Its been at least 6 years since I really listened to anything they made, but I really enjoyed the show overall. They had a very electronic feel, sort of like siman mobile disco, but a bit rougher at times. They used a lot of really cool effects and I really loved the vocals. Check out a few more pictures of the show &lt;a href=&quot;/art/Mouse-On-Mars-Pictures&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/Mouse-On-Mars</link>
                <guid>http://skyra.github.io/blog/Mouse-On-Mars</guid>
                <pubDate>2013-03-02T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Mouse On Mars (Live)</title>
                <description>&lt;div id=&quot;plusgallery&quot; data-album-id=&quot;fsv7h&quot; data-type=&quot;imgur&quot;&gt;&lt;/div&gt;
</description>
                <link>http://skyra.github.io/art/Mouse-On-Mars-Pictures</link>
                <guid>http://skyra.github.io/art/Mouse-On-Mars-Pictures</guid>
                <pubDate>2013-03-02T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>WHY!!?@#!>#?#@</title>
                <description>&lt;p&gt;Welcome to my piece for &lt;strong&gt;&lt;a href=&quot;https://www.facebook.com/BushwickFirstFriday&quot;&gt;Bushwick First Friday&lt;/a&gt;&lt;/strong&gt;. The theme this month was Tangible Absence.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Congratulations!&lt;/em&gt; If you followed the &lt;a href=&quot;http://en.wikipedia.org/wiki/Qr_code&quot;&gt;QR-code&lt;/a&gt;, you found the one component of my display which actually functions correctly! Give yourself a pat on the back. If you have no idea what I’m talking about, this is what it looked like:&lt;/p&gt;

&lt;p&gt;
&lt;center&gt;&lt;a href=&quot;http://makerfaire.com&quot;&gt;
    &lt;img src=&quot;http://i.imgur.com/ZC6oNC7.png&quot; alt=&quot;QR-code&quot; style=&quot;height:250x;width:362px&quot; /&gt;
&lt;/a&gt;&lt;/center&gt;
&lt;/p&gt;

&lt;p&gt;####Errors Galore
Everything else had some kind of problem or error. Don’t you just hate when that happens? I had phones which couldn’t connect to the internet, find a GPS signal, or just crashed for no reason. I also set up a comment system on a computer which would show the dreaded &lt;a href=&quot;http://en.wikipedia.org/wiki/Bsod&quot;&gt;bsod&lt;/a&gt; occasionally. I hope you got a chance to play with them.&lt;/p&gt;

&lt;p&gt;####My Idea
I started by thinking of the things that have the biggest impact in my life when they are absent. I immediately thought of my phone and computer. I require them to be connected to the things around me. I use Google Maps to get directions. I use Yelp to find places to eat. How did people survive before the internet?&lt;/p&gt;

&lt;p&gt;####The Piece
In this piece, I tried to show what happens when technology goes wrong. Although technology can be helpful, when it’s not working it makes things even more difficult to deal with. We have become so dependent on our phones that when they break, we are stuck trying to figure out how to fix it before we can move on to the thing we were trying to accomplish in the first place!&lt;/p&gt;
</description>
                <link>http://skyra.github.io/art/WHY!!</link>
                <guid>http://skyra.github.io/art/WHY!!</guid>
                <pubDate>2013-03-01T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>I'm in New York</title>
                <description>&lt;p&gt;I’m in New York! Finally! I just moved here to work on android development at &lt;a href=&quot;http://tech.cornell.edu&quot;&gt;Cornell NYC Tech&lt;/a&gt;. I’m part of an awesome team which is developing mobile health software.&lt;/p&gt;

&lt;p&gt;I decided to start this blog to help foster collaboration between me and other interested individuals. Check out the &lt;a href=&quot;https://github.com/skyra/skyra/issues&quot;&gt;Issues&lt;/a&gt; to see the kinds of things I’m working on and the kinds of things I want to do. And help me out or work with me on any of them if you find them interesting.&lt;/p&gt;
</description>
                <link>http://skyra.github.io/blog/I'm-in-New-York</link>
                <guid>http://skyra.github.io/blog/I'm-in-New-York</guid>
                <pubDate>2013-02-02T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Sutro Baths</title>
                <description>&lt;div id=&quot;plusgallery&quot; data-album-id=&quot;Bs2Pk&quot; data-type=&quot;imgur&quot;&gt;&lt;/div&gt;
</description>
                <link>http://skyra.github.io/art/Sutro-Baths</link>
                <guid>http://skyra.github.io/art/Sutro-Baths</guid>
                <pubDate>2012-12-27T00:00:00+00:00</pubDate>
        </item>

        <item>
                <title>Battery Park</title>
                <description>&lt;p&gt;Siyu and I got up really early, drove north of the Golden Gate Bridge, and got a few awesome pictures!&lt;/p&gt;

&lt;div id=&quot;plusgallery&quot; data-album-id=&quot;AiriV&quot; data-type=&quot;imgur&quot;&gt;&lt;/div&gt;
</description>
                <link>http://skyra.github.io/art/Battery-Park</link>
                <guid>http://skyra.github.io/art/Battery-Park</guid>
                <pubDate>2012-12-27T00:00:00+00:00</pubDate>
        </item>


</channel>
</rss>