<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>glow.li: Simulation</title>
        <description>A blog by glow.</description>
        <link>https://glow.li/tags/simulation.xml</link>
        <atom:link href="https://glow.li/tags/simulation.xml" rel="self" type="application/rss+xml"/>
        <generator>Glow.li Builder</generator>
            <item>
        <title>Rain animation</title>
        <description>&lt;div id="rain" class="rain"&gt;
    &lt;div class="rain-nojs"&gt;Browser simulation that requires JavaScript.&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://glow.li/rain/"&gt;⇱ Open in large mode &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the gear icon for some cool sliders.&lt;/p&gt;
&lt;!--more--&gt;
&lt;p&gt;I created a stylized animation of rain using JavaScript. The wind and intensity change randomly.&lt;/p&gt;
&lt;p&gt;Repository: &lt;a href="https://github.com/Neo-Oli/rain"&gt;https://github.com/Neo-Oli/rain&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the beginning it looked quite bad, but when I added the parallax effect it all came together. I am now pretty happy with it.&lt;/p&gt;
&lt;p&gt;After I was done I added a small menu to pause the animation and enable the debug output. Then I, just to make it cooler, I added a bunch of sliders. I especially enjoy the color options. How cool is this blood rain and that rainbow rain.&lt;/p&gt;
&lt;div class="grid2"&gt;
&lt;p&gt;&lt;a href="https://glow.li/media/images/big/rain-red-white.webp?chash=Iebu8352b9"&gt;&lt;img src="https://glow.li/media/images/rain-red-white.webp?chash=Iebu878d14" alt="Screenshot of rain animation. Background is white and rain is red" title="Screenshot of rain animation. Background is white and rain is red" loading="lazy" sizes="(max-width:800px) 100vw, (max-width:800px) 100vw, (max-width:1000px) 80vw, (max-width:1200px) 67vw, (max-width:1400px) 58vw, (max-width:1600px) 50vw, (max-width:1800px) 45vw, (max-width:2000px) 40vw, (max-width:2200px) 37vw, (max-width:2400px) 34vw, (max-width:2600px) 31vw, (max-width:2800px) 29vw, 1500px" srcset="https://glow.li/media/images/rain-red-white.webp?chash=Iebu878d14 1500w, https://glow.li/media/images/1200/rain-red-white.webp?chash=Iebu884ce3 1200w, https://glow.li/media/images/1000/rain-red-white.webp?chash=Iebu884ce3 1000w, https://glow.li/media/images/800/rain-red-white.webp?chash=Iebu884ce3 800w, https://glow.li/media/images/700/rain-red-white.webp?chash=Iebu884ce3 700w, https://glow.li/media/images/600/rain-red-white.webp?chash=Iebu8bf518 600w, https://glow.li/media/images/500/rain-red-white.webp?chash=Iebu8ab8a8 500w, https://glow.li/media/images/400/rain-red-white.webp?chash=Iebu8c7247 400w, https://glow.li/media/images/300/rain-red-white.webp?chash=Iebu840c49 300w, https://glow.li/media/images/200/rain-red-white.webp?chash=Iebu868630 200w, https://glow.li/media/images/100/rain-red-white.webp?chash=Iebu8ffc6f 100w" &gt;&lt;/a&gt;
&lt;a href="https://glow.li/media/images/big/rain-rainbow.webp?chash=Iebu8ea05f"&gt;&lt;img src="https://glow.li/media/images/rain-rainbow.webp?chash=Iebu829eb3" alt="Screenshot of rain animation. Background is black and rain is a rainbow" title="Screenshot of rain animation. Background is black and rain is a rainbow" loading="lazy" sizes="(max-width:800px) 100vw, (max-width:800px) 100vw, (max-width:1000px) 80vw, (max-width:1200px) 67vw, (max-width:1400px) 58vw, (max-width:1600px) 50vw, (max-width:1800px) 45vw, (max-width:2000px) 40vw, (max-width:2200px) 37vw, (max-width:2400px) 34vw, (max-width:2600px) 31vw, (max-width:2800px) 29vw, 1500px" srcset="https://glow.li/media/images/rain-rainbow.webp?chash=Iebu829eb3 1500w, https://glow.li/media/images/1200/rain-rainbow.webp?chash=Iebu8d64d0 1200w, https://glow.li/media/images/1000/rain-rainbow.webp?chash=Iebu8d64d0 1000w, https://glow.li/media/images/800/rain-rainbow.webp?chash=Iebu8d64d0 800w, https://glow.li/media/images/700/rain-rainbow.webp?chash=Iebu8d64d0 700w, https://glow.li/media/images/600/rain-rainbow.webp?chash=Iebu8e11ee 600w, https://glow.li/media/images/500/rain-rainbow.webp?chash=Iebu88a62b 500w, https://glow.li/media/images/400/rain-rainbow.webp?chash=Iebu832883 400w, https://glow.li/media/images/300/rain-rainbow.webp?chash=Iebu8b9393 300w, https://glow.li/media/images/200/rain-rainbow.webp?chash=Iebu8f04ca 200w, https://glow.li/media/images/100/rain-rainbow.webp?chash=Iebu8f0749 100w" &gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;This is how it should look, so if it doesn't look like that it's broken.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://glow.li/loop/rain.webm/"&gt;        &lt;video class="video-autoplay" autoplay loop muted poster="https://glow.li/media/videos/previews/rain.webp?chash=Iebu8b63a0"&gt;        &lt;source src="https://glow.li/media/videos/rain.webm" type="video/mp4"&gt;        Click to view the video.        &lt;/video&gt;        &lt;/a&gt;&lt;/p&gt;
&lt;h3 id="Update" name="Update"&gt;&lt;a class="hash-link" href="#Update"&gt;Update&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;For no particular reasons I added a bunch more color modes. Most notably a bunch of pride flag patterns. You can check them out in the menu.&lt;/p&gt;
&lt;div class="grid2"&gt;
&lt;p&gt;&lt;a href="https://glow.li/loop/rain-pride.webm/"&gt;        &lt;video class="video-autoplay" autoplay loop muted poster="https://glow.li/media/videos/previews/rain-pride.webp?chash=Iebu89acf1"&gt;        &lt;source src="https://glow.li/media/videos/rain-pride.webm" type="video/mp4"&gt;        Click to view the video.        &lt;/video&gt;        &lt;/a&gt;&lt;a href="https://glow.li/loop/rain-trans.webm/"&gt;        &lt;video class="video-autoplay" autoplay loop muted poster="https://glow.li/media/videos/previews/rain-trans.webp?chash=Iebu87770f"&gt;        &lt;source src="https://glow.li/media/videos/rain-trans.webm" type="video/mp4"&gt;        Click to view the video.        &lt;/video&gt;        &lt;/a&gt;&lt;a href="https://glow.li/loop/rain-bi.webm/"&gt;        &lt;video class="video-autoplay" autoplay loop muted poster="https://glow.li/media/videos/previews/rain-bi.webp?chash=Iebu895d83"&gt;        &lt;source src="https://glow.li/media/videos/rain-bi.webm" type="video/mp4"&gt;        Click to view the video.        &lt;/video&gt;        &lt;/a&gt;&lt;a href="https://glow.li/loop/rain-demisexual.webm/"&gt;        &lt;video class="video-autoplay" autoplay loop muted poster="https://glow.li/media/videos/previews/rain-demisexual.webp?chash=Iebu84444c"&gt;        &lt;source src="https://glow.li/media/videos/rain-demisexual.webm" type="video/mp4"&gt;        Click to view the video.        &lt;/video&gt;        &lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</description>
    <pubDate>Thu, 17 Dec 2020 00:00:00 +0000</pubDate>
    <link>https://glow.li/posts/rain/</link>
    <guid isPermaLink="false">1608163200</guid>
</item>

<item>
        <title>Game: Microbes</title>
        <description>&lt;p&gt;&lt;a href="https://glow.li/microbes/"&gt;&lt;img src="https://glow.li/media/images/microbes.webp?chash=Iebu88ce55" alt="Screenshot of microbes Game" title="Screenshot of microbes Game" loading="lazy" sizes="(max-width:800px) 100vw, (max-width:800px) 100vw, (max-width:1000px) 80vw, (max-width:1200px) 67vw, (max-width:1400px) 58vw, (max-width:1600px) 50vw, (max-width:1800px) 45vw, (max-width:2000px) 40vw, (max-width:2200px) 37vw, (max-width:2400px) 34vw, (max-width:2600px) 31vw, (max-width:2800px) 29vw, 1500px" srcset="https://glow.li/media/images/microbes.webp?chash=Iebu88ce55 1500w, https://glow.li/media/images/1200/microbes.webp?chash=Iebu80514f 1200w, https://glow.li/media/images/1000/microbes.webp?chash=Iebu80514f 1000w, https://glow.li/media/images/800/microbes.webp?chash=Iebu80514f 800w, https://glow.li/media/images/700/microbes.webp?chash=Iebu8283e0 700w, https://glow.li/media/images/600/microbes.webp?chash=Iebu8a7783 600w, https://glow.li/media/images/500/microbes.webp?chash=Iebu833ac6 500w, https://glow.li/media/images/400/microbes.webp?chash=Iebu8b7078 400w, https://glow.li/media/images/300/microbes.webp?chash=Iebu8400d9 300w, https://glow.li/media/images/200/microbes.webp?chash=Iebu8d3c65 200w, https://glow.li/media/images/100/microbes.webp?chash=Iebu8d4fe6 100w" &gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://glow.li/microbes/"&gt;⇱ Play the game&lt;/a&gt;&lt;/p&gt;
&lt;!--more--&gt;
&lt;p&gt;To learn how to use HTML5 Canvases with JavaScript I decided to program a little game. Do you remember the Live Wallpaper on those old Android Phones? My Galaxy SII had it. Where you have to feed microbes and they would divide. This is that game with the added features of evolving colors, speed, health etc. A microbe has many different attributes. Each attribute has a chance of mutating (in any direction) when a microbe splits. Depending on how you feed your microbes different strengths are required and microbes with that strength have a higher chance of survival. The longer you play the better your microbes get.&lt;/p&gt;
&lt;p&gt;Repository: &lt;a href="https://github.com/Neo-Oli/Microbes"&gt;https://github.com/Neo-Oli/Microbes&lt;/a&gt;&lt;/p&gt;</description>
    <pubDate>Wed, 10 Jan 2018 00:00:00 +0000</pubDate>
    <link>https://glow.li/posts/microbes/</link>
    <guid isPermaLink="false">1515542400</guid>
</item>

    </channel>
</rss>

