<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bhuvanesh Shan on Medium]]></title>
        <description><![CDATA[Stories by Bhuvanesh Shan on Medium]]></description>
        <link>https://medium.com/@bhuvanesh_shan?source=rss-4389b3df8a2b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ANiU6Ozdtjb8t_cB052mNw.jpeg</url>
            <title>Stories by Bhuvanesh Shan on Medium</title>
            <link>https://medium.com/@bhuvanesh_shan?source=rss-4389b3df8a2b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:13:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhuvanesh_shan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Making full screen UI in Android Jetpack Compose]]></title>
            <link>https://medium.com/@bhuvanesh_shan/making-full-screen-ui-in-android-jetpack-compose-46a7a1362b02?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/46a7a1362b02</guid>
            <category><![CDATA[jetpack]]></category>
            <category><![CDATA[material-design]]></category>
            <category><![CDATA[fullscreen]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Sat, 07 May 2022 15:22:15 GMT</pubDate>
            <atom:updated>2022-05-07T15:22:15.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WVUBQsNgePqQxmrHjaID4g.png" /></figure><p>Android developers are used to setting their app occupy the entire screen using themes. This is done by simply adding ‘.NoActionBar’ theme to their app/activity or by inheriting it by using it as the parent theme.</p><pre>android:theme=&quot;@style/Theme.AppCompat.DayNight.NoActionBar&quot;</pre><p>With Jetpack Compose, entire app is styled via Kotlin by passing colors, typography, shapes to a Themes Composable.</p><p>Example:</p><pre><em>MaterialTheme</em>(<br>    colors = colors,<br>    typography = <em>Typography</em>,<br>    shapes = <em>Shapes</em>,<br>    content = content<br>)</pre><p>Here content holds the views that needs to be drawn with the provided theme.</p><p>Since we cant specify styles via xml, we need to set the respective properties programmatically to make the app occupy full screen.</p><p>In this case you can use the following snippets to achieve the same,</p><pre>fun hideSystemUI() {<br>    <br>    //Hides the ugly action bar at the top<br>    <em>actionBar</em>?.hide()<br><br>    //Hide the status bars<br>    <br>    WindowCompat.setDecorFitsSystemWindows(<em>window</em>, false)<br>    <br>    if (Build.VERSION.<em>SDK_INT </em>&lt; Build.VERSION_CODES.<em>R</em>) {<br>        <em>window</em>.addFlags(WindowManager.LayoutParams.<em>FLAG_FULLSCREEN</em>)<br>    } else {<br>        <em>window</em>.<em>insetsController</em>?.<em>apply </em><strong>{<br>            </strong>hide(WindowInsets.Type.statusBars())<br>            <em>systemBarsBehavior </em>= WindowInsetsController.<em>BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE<br>        </em><strong>}<br>    </strong>}<br>}</pre><p>Call the above after setting the content view. This is because, the Insets Controller would be available to properly apply the same after a view is attached to the window or a view tree with a decor.</p><p>Thus your activity’s onCreate() need to look something like this:</p><pre>override fun onCreate(savedInstanceState: Bundle?) {<br>    super.onCreate(savedInstanceState)<br>    <br>    <em>setContent </em><strong>{<br>        </strong><em>AppTheme </em><strong>{<br>            //composables to draw ui<br></strong>        }<br>    }<br>    <br>    hideSystemUI()<br>}</pre><p>I’ll keep this post updated if I find any changes or simpler ways to achieve the same! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46a7a1362b02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Applying for Masters in US while in undergrad]]></title>
            <link>https://medium.com/@bhuvanesh_shan/applying-for-masters-in-us-while-in-undergrad-79ec0f6553dd?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/79ec0f6553dd</guid>
            <category><![CDATA[masters-in-usa]]></category>
            <category><![CDATA[ms-in-us]]></category>
            <category><![CDATA[undergraduate]]></category>
            <category><![CDATA[masters-degree]]></category>
            <category><![CDATA[study-abroad]]></category>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Tue, 21 Sep 2021 14:31:47 GMT</pubDate>
            <atom:updated>2021-09-21T14:31:47.271Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s talk about the things to do while one is still doing undergrad in order to better prepare and apply for a masters degree in USA.</p><p>This article by me was originally published in <a href="https://web.archive.org/web/20161228103836/http://howtoceg.info/post-MSUS.html">howtoceg.info</a> on 24 December, 2016.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TcLN0CksMP00ewW-" /><figcaption>Photo by <a href="https://unsplash.com/@someshks?utm_source=medium&amp;utm_medium=referral">Somesh Kesarla Suresh</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>HOW TO : Apply for Master of Science (M.S.)</h3><p>Master of Science (MS) degree is the next step if one is interested in pursuing academia after his/her Bachelor’s degree. This article is about the steps to apply for an MS course in US. For masters in other countries, almost all the below steps would be applicable except for the tests and application deadlines.</p><h3>During 5th semester</h3><p>During the 3rd year, it’s a good idea to approach a knowledgeable professor and start working in an area that one finds interesting. This would help to determine <em>the area of specialization</em> during the Masters study. Since CEG’s coursework <em>doesn’t involve research</em>, this activity would help to understand how academic research would be and helps in understanding if one is inclined towards further academic pursuits.</p><h3>And in 6th semester</h3><p>Publishing <em>a research paper</em> in a conference would elevate one’s profile. This could directly be the result of his/her research activity in the previous semester. A paper on one’s resume showcases his/her interest in research activity and this would in turn help in getting an admit in a highly reputed university.</p><h3>What about Summer?</h3><p>During the summer holidays between 3rd and 4th year, it’s a good idea to prepare and give GRE exam. Preparation would take anywhere from 1 month to 3.5 months depending on how well versed one is in English. It is always recommended to aim for <em>a minimum of 320</em> out of 340. Many have covered about GRE and so I’ll refrain from diving into details regarding GRE.</p><p>TOEFL test can be taken once GRE is done with. TOEFL shouldn’t take more than a weekend’s preparation. Getting more than 100 out of 120 is fairly easy.</p><h3>The jam packed 7th semester</h3><p>Before finishing GRE and TOEFL exams, start researching universities. Finish applying by the start of December since most universities have application deadline around that time. <em>Researching about universities</em> is crucial and I can’t stress more on finding the right university.</p><p>Get to know the courses and specializations offered by a university. Find out where the university ranks in the particular area that you are looking for. A computer science student can think about areas such as <em>Artificial Intelligence and Machine Learning, Human Computer Interaction, Systems Engineering, Computer Graphics, Security, Data Science</em> and many more. Similarly, other departments would have their own areas in which one can specialize in their masters. Few universities award general master’s degree without doing a specialization</p><blockquote><em>US News rankings is usually considered a reliable source. Link:</em><a href="https://web.archive.org/web/20161228103836/https://goo.gl/saFdKa"><em>Best Grad Schools</em></a></blockquote><p>Looking up the number of profs working in the area one is planning to do masters, the number of courses (subject/papers) offered by the university, researching a bit about the cost of living and tuition fee, student prof ratio, etc. will help in deciding which university is better suited for an individual. Talking with alumni or people studying in the universities shortlisted will help a lot.</p><p>While shortlisting universities, one needs to understand that a university may rank at different levels in each area. For example, Univ A may be the best for Systems engineering (CS) while may not have a lot of professors working in Artificial Intelligence (CS). And thus, there is no one single university that is best in all areas in a domain.</p><p>Statement of purpose (SoP) is required to be submitted during the application process. SoP is where one can highlight why one is interested in masters and <em>why master’s is important for his/her career</em>. The paper published in 6th semester should help one stand out from the crowd. Professors who review SoPs would love to hear about <em>one’s research</em> more than anything else.</p><p>Letter of recommendation (LoR) from professors is equally important. One can approach <em>3 or 4 professors</em> under whom one has worked with or taken classes. Try to persuade them to write a LoR for you. <em>The professor associated with the paper published in 5th and 6th semester should be able to give a strong LoR.</em></p><h3>Anxious 8th semester</h3><p>After applying in 7th semester, relax and await the results. Student from CEG usually apply for 6 universities among which 2 would be hard to get an admit, 2 would have moderate chances of getting an admit and finally 2 which are safe and can be considered as sure shot admits. Different universities take into consideration different factors (SoP, LoR, GRE, GPA, etc) with varying weights while giving an admit and the admission process is a closed one. And so one should try the best in showcasing his/her profile through SoP, LoR and research work. With proper ground work, any university should be within one’s reach!</p><p><em>All the best :)</em></p><p><em>Bhuvanesh Shanmuga Sundaram<br>MS CS, Georgia Tech (CEG 2010–14)<br>Email: bhuvanesh.bleu@gmail.com</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79ec0f6553dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Updating an old android app to meet Google Play’s requirements]]></title>
            <link>https://medium.com/@bhuvanesh_shan/updating-an-old-android-app-to-meet-google-plays-requirements-45aabe332c69?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/45aabe332c69</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[androidx]]></category>
            <category><![CDATA[sdk]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Sun, 11 Apr 2021 00:36:44 GMT</pubDate>
            <atom:updated>2021-04-11T00:36:44.426Z</atom:updated>
            <content:encoded><![CDATA[<p>Long back, in 2017, I published PolygonArt, an android app that allows users to create art based on polygons. The brushes were polygons themselves and a stroke generated a line of them stitched together in sequence.</p><p>Recently it was removed from play store due to missing target audience information. And so had to fill those information before resubmitting the app.</p><p>As part of play console requirements any update would require the app to target API Level 29 (Android 10). Here are the steps I followed to get my app compatible for re-uploading to play console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O3Naf1HU5GQZssY3ZWL3xA.png" /></figure><h3>1.Updating SDK Version</h3><p>Go to build.gradle in your app dir and set <strong>targetSdkVersion</strong> to 30. Along with it, the <strong>compileSdkVersion</strong> needs to be set to 30</p><p>This would inform android studio to compile the app against API Level 30 (Android 11).</p><h3>2.Migrating to AndroidX</h3><p>Android Support Library has been deprecated with version 28.0.0 being the last. It is no longer maintained and Google requires <a href="https://developer.android.com/jetpack/androidx">AndroidX libraries</a> to be used moving forward.</p><p>Each android support library such as <strong>com.android.support:appcompat</strong> has a androidx counter part, in this case, <strong>androidx.appcompat:appcompat.</strong></p><p>Migrating to AndroidX is simple and Android Studio has a menu option to do the same i.e. <em>Refactor menu&gt; Migrate to AndroidX</em></p><p>Android studio analyzes app’s dependencies and would recommend the changes that need to refactor. clicking ‘Refactor’ would convert all the related libs and uses to androidx namespace.</p><p>The dependencies in build.gradle would be converted from</p><pre>compile ‘com.android.support:appcompat-v7:25.0.0’<br>compile ‘com.android.support:design:25.0.0’</pre><p>to</p><pre>compile &#39;androidx.appcompat:appcompat:1.0.0&#39;<br>compile &#39;com.google.android.material:material:1.0.0&#39;</pre><p>If you haven’t replaced <strong>compile</strong> with <strong>implementation </strong>in your build.gradle’s dependency section like me, then it is high time to do that. ‘compile’ was deprecated and ‘implementation’ is a better way to consume libraries since it doesn’t expose the dependencies into the compile class path thus resulting in faster compilation times.</p><pre>implementation &#39;androidx.appcompat:appcompat:1.0.0&#39;<br>implementation &#39;com.google.android.material:material:1.0.0&#39;</pre><p>Imports in files would change to androidx namespace</p><pre>import androidx.core.app.ActivityCompat;<br>import androidx.core.content.ContextCompat;<br>import androidx.appcompat.app.AlertDialog;<br>import androidx.appcompat.app.AppCompatActivity;</pre><h3>3.Update build tools version</h3><p>You may need to update the buildToolsVersion in build.gradle. This decides the version of <a href="https://developer.android.com/studio/releases/build-tools">Build-tools</a> component that helps in compiling and generating the apk or app-bundle.</p><p>The version usually goes along with the compile sdk version.</p><p>Go to <strong>SDK manager &gt; SDK tools &gt;install latest build tools available</strong>.</p><p>If you could see the installed build tools versions at /Users/&lt;user&gt;/Library/Android/sdk/build-tools</p><p>Specify the latest installed buildToolsVersion in build.gradle file.</p><pre>android <strong>{<br>    </strong>compileSdkVersion 30<br>    buildToolsVersion &#39;30.0.3&#39;</pre><p>Hit Build &gt; Make Project. A relatively simple app shouldn’t have issues and should compile successfully.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45aabe332c69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling animation 101]]></title>
            <link>https://medium.com/@bhuvanesh_shan/scaling-animation-101-55311b320954?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/55311b320954</guid>
            <category><![CDATA[graphics]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Tue, 20 Feb 2018 03:02:26 GMT</pubDate>
            <atom:updated>2018-02-20T03:02:26.616Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever wondered how scaling motions such as heart beating or zoom in and out are done? This article explains the fundamental process of scaling objects for animations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*4jUqus59-G_NpzEdLS_BMw.gif" /><figcaption>A couple of beating hearts!</figcaption></figure><p>Let the width and height of the image that you want to scale be w0 and h0. And let the size that you want to scale to, be w1 and h1. Let the time taken to reach w1and h1 from original w0 and h0 be ‘f’ frames.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*F3NWfWbNsMgIT9UjQVXCYA.jpeg" /></figure><p>Now, at frame 1 you need to draw the image with size (w0,h0) and at frame f with size (w1,h1). And for frames in-between you need to interpolate between start and end sizes with intermediate frames.</p><p>Interpolation is the process by which the intermediate values are estimated. I call the resulting value of interpolation as interpolant. In simple words, interpolant is the value that you use to calculate the size of the image in a given frame.</p><p>And so, at frame 0 interpolant i = 0, at frame f interpolant i = 1 and at middle frame f/2 interpolant i=0.5.</p><blockquote>So interpolant i = k/f where k is the current frame number.</blockquote><p>Now, the difference between the starting and the ending size is multiplied by interpolant. This gives the value that you need to add to original size.</p><blockquote><em>current size = original size + difference in size * interpolant</em></blockquote><p><em>Thus, current_width = w0 + ( w1- w0 ) * i</em></p><p>Now, at each frame from 0 to f, calculate the interpolant i and find the width and height for the current frame.</p><pre>for each frame k<br>    i = k/f<br>    current_width = w0 + (w1-w0)*i<br>    current_height = h0 + (h1-h0)*i<br>    draw(image, x, y, current_width, current_height)</pre><p>And if you repeat the above process from frame f, f-1, f-2,.. k.. down to 0, you’ll get a back and forth motion like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*VQ-Yq39W45_TF3cJ1oI3wg.gif" /></figure><p>To get a fluid and natural motion, we can add ease in and ease out effect. Will create another article on the same next! Have a great day!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55311b320954" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Day at High Museum of Art]]></title>
            <link>https://medium.com/@bhuvanesh_shan/a-day-at-high-museum-of-art-19c2e04e91fc?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/19c2e04e91fc</guid>
            <category><![CDATA[museums]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[art]]></category>
            <category><![CDATA[atlanta]]></category>
            <category><![CDATA[painting]]></category>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Sat, 10 Feb 2018 20:01:24 GMT</pubDate>
            <atom:updated>2018-02-10T20:03:55.899Z</atom:updated>
            <content:encoded><![CDATA[<p>Atlanta is known for art, but I haven’t stopped by an art place here. So I decided to visit one!</p><p>When you think of museums, you end of picturing old buildings. But this place is the exact opposite of it. Atlanta’s High Museum of Art is a pure white building with modern architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFrtT7tsW-F9AvMRTJlLuw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rXVQ2WiZ_9Xg9hil5UtMHQ.jpeg" /></figure><p>You are greeted with an illusion-exhibit as you enter. The house you see is a 2d object but gives you the illusion of 3-dimensional when you view it from the right angle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QIF7qcGbDjlV2IyVmqiEIQ.jpeg" /></figure><p>Each floor in the main building is dedicated to each time period which had unique art styles such as Renaissance, American and Modern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7YUi8IhuCjEk-5U2AR6mA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5P0o7d13RWTRedmIC34nw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kfoNsTSkoQGdaYYWcz6pKw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ni5lpAvEXzfXTpw2L2eVLQ.jpeg" /></figure><p>The top floor was filled with plethora of modern art installations and works. Ranges from 2d paintings to wall installations to 3d exhibits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aV8s9-nZ4KOaS_6YRLzNbg.jpeg" /></figure><p>The above red painting might seem like a work of urgency with no clear vision! But when you look closely, you can see blobs or areas with trees in focus while the rest of the red colored area blurry. A thoughtful representation of passage of time! Time is flying so fast that when you turn back and look at your life, there are only a few moments that are crystal clear. Rest all a hazy ride! You might think I’m looking into it too much or too little, but hey, this is what my mind could decipher out of this and it was good enough a reason to stare at it for a while!</p><p>The other one I loved was a black and while painting — the below one — where all the stars in the sky were marked with their astronomical names. This one shows the convergence of sky and sea with a bit of science added to it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5-_AK902xeZES0wCOcUlg.jpeg" /></figure><p>There was one another installation that caught my eye. It was a cardboard box stuck to the wall. I wondered why would someone call a cardboard box an art piece. The note nearby it said it was made of porcelain. I was stunned! The artist has boldly conveyed that,</p><blockquote><em>Things are not what they seem; the first appearance deceives many!’</em></blockquote><p>It was a day well spent. Gonna leave the below note I found in the museum here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oj_ARFtBt5DNa3KjGhmNSg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19c2e04e91fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generative art 101]]></title>
            <link>https://medium.com/@bhuvanesh_shan/generative-art-101-707210d56222?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/707210d56222</guid>
            <category><![CDATA[creative-coding]]></category>
            <category><![CDATA[visual-design]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[art]]></category>
            <category><![CDATA[generative-art]]></category>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Sat, 10 Feb 2018 12:13:28 GMT</pubDate>
            <atom:updated>2018-02-10T12:13:28.493Z</atom:updated>
            <content:encoded><![CDATA[<p>I created this yesterday out of sheer boredom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*kzP9_PkjK7saKKkHMFGZdw.gif" /></figure><p>Though you see a lot going on in the Gif, it is simpler to create than you think.</p><p>Imagine the canvas (drawing area on screen) split into grids and each cell in the grid holds a circle.</p><pre>for rows from 0 to n<br>   for columns from 0 to n<br>      draw circle row, column, size</pre><p>Now we need to change the size of the circle from max size to zero to max size again. To do that in a smooth way, we use the sine curve. We start with radian of 0. Increment it by 0.1 every frame. Since sin returns value between -1 and 1, we multiply it by max size of or circle to get value between -max size and +max size.</p><pre>radian = 0<br>for every frame<br>    radian = radian + 0.1<br>    size = max_size * sin ( radian )<br>    draw circle row, column, size</pre><p>Now this would display all circles in the grid with same size at every frame. So we need to add an offset based on the column so that the circles in a row look like they are changing size in a sequence.</p><pre>size = max_size * sine ( radian + offset_based_on_column )</pre><p>At this point we would have a wavy pattern within a row but all rows would look same. If you add a slight offset to each row, then you would end up having rows that are slightly different from the row above it.</p><p>When displaying each frame, we need to increment the radian of each circle by a small amount, say 0.1, so that it feels as if the circles are moving from right to left. Since we added offset between rows, the wave travels from top-right to bottom-left!</p><p>The code can be found at</p><p><a href="https://github.com/BhuvaneshShan/Generative-Art-101/blob/master/sketch_sineCirlcles.pde">BhuvaneshShan/Generative-Art-101</a></p><p>If you are interested to know the tool I used, it is <a href="https://processing.org/">Processing</a>. I use it all the time for simple visual experiments like these.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=707210d56222" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How motion tween works]]></title>
            <link>https://medium.com/@bhuvanesh_shan/how-motion-tween-works-9d97bd56f88d?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d97bd56f88d</guid>
            <category><![CDATA[linear-motion]]></category>
            <category><![CDATA[motion-graphics]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[adobe]]></category>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Sat, 12 Aug 2017 16:16:28 GMT</pubDate>
            <atom:updated>2017-08-13T02:56:59.251Z</atom:updated>
            <content:encoded><![CDATA[<h4>Linear interpolation</h4><p>Everyone would have heard about Adobe Flash which is going to be shelved in the forth coming years. Flash was a part of my childhood. It was the first software that I used to play with animation.</p><p>A feature that I always used to experiment on Flash is motion tween or simply called tweening. Simply put, on applying tweening, Flash moves an object from one position to a different position at the specified speed in frames/sec.</p><p>To emulate this, we just need to know the start and end pos of the obj and the speed to move it. Let A be the start pos and B be the end pos. Assume the object should reach B from A in F frames. Let f be the current frame number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*sn9ipBiMfRFcJu58wIwadg.jpeg" /></figure><p>At frame f, buddha would have moved 40% of dist between A and B.</p><p>Which means, pos A has 0.6 parts in determining the pos at frame f, while B has 0.4 parts. i.e. A : B :: 0.6 : 0.4</p><p>Let B’s parts be the interpolant i. In this case, i= 0.4</p><p>So, pos at frame f, P = A * (1-i) + B * i</p><p>On re-ordering the variables, P = i * (B-A) + A</p><p>Thus, at every frame from 0 to F, interpolant i is calculated as i = f/F and the above formula is used to compute the position of Buddha. The result is a smooth flowing animation!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FnRr1lgCkL5HY4%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FnRr1lgCkL5HY4%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FnRr1lgCkL5HY4%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="184" frameborder="0" scrolling="no"><a href="https://medium.com/media/54ce4c64ee4fba92dd15ca88eb427eae/href">https://medium.com/media/54ce4c64ee4fba92dd15ca88eb427eae/href</a></iframe><p><em>Disclaimer : Child Buddha in the pictures belongs to its creator. Give him a thumbs up on </em><a href="https://www.behance.net/gallery/21427759/Cute-Child-Buddha-in-Levitation-Meditation"><em>Behance</em></a><em>!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d97bd56f88d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enjoy your life!]]></title>
            <link>https://medium.com/@bhuvanesh_shan/enjoy-your-life-d4521a635803?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4521a635803</guid>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Fri, 03 Jan 2014 12:09:23 GMT</pubDate>
            <atom:updated>2014-01-03T12:09:23.807Z</atom:updated>
            <content:encoded><![CDATA[<h4>Different ways to enjoy life</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*EOoiRPz0S7F7HXsfQyEwGQ.jpeg" /></figure><p>I found this on Quora today.</p><p><strong><em>Flavours for enjoying life :</em></strong><br><strong><em>Beauty</em></strong><br><strong><em>Insight</em></strong><br><strong><em>Exploration</em></strong><br><strong><em>Discovery</em></strong><br><strong><em>Thinking</em></strong><br><strong><em>Creativity</em></strong><br><strong><em>Friendships</em></strong><br><strong><em>Experimentation</em></strong><br><strong><em>Fun and Humour</em></strong></p><p>Most of us have the crave to enjoy life. We think enjoyment is going out with friends to mall, theatres, beaches and having parties and get-togethers. Yeah, they make you feel happy. Laughter will be around you.<br>The above said come under the categories Friendships, Fun and Humour.<br>What about the rest?Yea, depending on the individual, every other task also makes your life enjoyable and interesting.To a traveller enjoying life is exploring the world. He feels a sense of satisfaction and happiness while travelling.Similarly for a scientist thinking and pondering over things make him happy.</p><p>And so, everyone has his own way of enjoying life and thats what makes one unique from others! Have fun and enjoy your life in your own way!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4521a635803" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sayings for Life]]></title>
            <link>https://medium.com/@bhuvanesh_shan/sayings-for-life-280c04c5ffc2?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/280c04c5ffc2</guid>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Mon, 02 Dec 2013 08:35:15 GMT</pubDate>
            <atom:updated>2013-12-02T08:35:15.545Z</atom:updated>
            <content:encoded><![CDATA[<h4>a beautiful compilation of thought provoking sayings</h4><p><a href="http://www.youtube.com/watch?v=XoOHkfsVg5o">http://www.youtube.com/watch?v=XoOHkfsVg5o</a></p><p>Wonderful video that I saw in youtube today. The lines that are show tingle your brain and make you think about yourself.<br>Beautiful compilation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=280c04c5ffc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lazy to work?]]></title>
            <link>https://medium.com/@bhuvanesh_shan/lazy-to-work-6b8bb6ca68d5?source=rss-4389b3df8a2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b8bb6ca68d5</guid>
            <dc:creator><![CDATA[Bhuvanesh Shan]]></dc:creator>
            <pubDate>Thu, 21 Nov 2013 17:58:07 GMT</pubDate>
            <atom:updated>2013-11-21T17:58:07.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*HCkEgvAjUqLRR76me3Bg6g.jpeg" /><figcaption>towards good dawn</figcaption></figure><h4>understanding your laziness to work and overcoming it!</h4><p>Are you the kind of person who likes to do something like drawing, music, programming, etc., but couldn&#39;t put yourself to work? You feel the urge to do the work but couldn&#39;t gather yourself together to sit and do the work? Don’t feel sad!</p><p>There are ways to overcome this situation. Its better first to understand the human psychology.<strong><em>Usually humans don’t work unless we are given some kind of incentive. </em></strong>For example, why would one go to work in an office unless he/she is paid? Not only money is the incentive, but things like self satisfaction, happiness, any kind of reward is an incentive. The incentive gives the motivation for one to complete the task he/she had taken. For volunteering work, the happiness one gets after the work drives one to do it again.</p><p>So if you couldn&#39;t work even though you like the task, then I doubt there is a lack of proper incentive or that you failed to recognize the incentive. Think of what you would get as a reward once you complete the work. If you really want or like that reward, you would do the task. <em>So </em><strong><em>let the incentives be wisely chosen. </em></strong>But that’s not the end! Do you think the ship will steer by itself?</p><p>Incentives are fine. But it is you who should control your brain. Not the other way around. Don’t relax all the time and think that you would go and do the task without you giving command to the brain. The brain will not recognize that it likes some task, so it should do it. It might, but not in most cases other than your natural talents.</p><p>So if you think you should do a task, then <strong><em>take control of your ship and visualize your destination i.e. the incentives and rewards and steer it in the right way!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b8bb6ca68d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>