<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>glfmn.io</title>
    <link rel="self" type="application/atom+xml" href="https://glfmn.io/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://glfmn.io"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-10-23T00:00:00+00:00</updated>
    <id>https://glfmn.io/atom.xml</id>
    <entry xml:lang="en">
        <title>image blocks</title>
        <published>2026-10-23T00:00:00+00:00</published>
        <updated>2026-10-23T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/devlog/2026-10-23/"/>
        <id>https://glfmn.io/devlog/2026-10-23/</id>
        
        <content type="html" xml:base="https://glfmn.io/devlog/2026-10-23/">&lt;p&gt;I&#39;m not sure I&#39;m doing a great job at this devlog thing lol.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I shifted attention pretty hard towards my live-coding tool: &lt;a rel=&quot;external&quot; href=&quot;https://sr.ht/~glfmn/image-blocks/&quot;&gt;image blocks&lt;/a&gt;.
I got some &lt;a rel=&quot;external&quot; href=&quot;https://git.sr.ht/~glfmn/image-blocks/commit/ba425f8e035109ea3773ca915d506b63798db85b&quot;&gt;contributions&lt;/a&gt; from a helpful and kind stranger, which
gave me a lot of energy to get back into image blocks.&lt;/p&gt;
&lt;p&gt;I&#39;ve been focused on improving and expanding my tests with new techniques like
&lt;a rel=&quot;external&quot; href=&quot;https://git.sr.ht/~glfmn/image-blocks/commit/38b97b0265ca63b4ada50887b92c1930f82987c2&quot;&gt;swarm testing&lt;/a&gt;, inspired by my previous thrust of work with the willow.&lt;/p&gt;
&lt;p&gt;I&#39;ve also taken some time to go back and address some TODOs, and I think I&#39;m at
an okay spot to get back into actually implementing the parser. I made small
change to the syntax for [&quot;declaration&quot;s], function declaration syntax is next
on my list.&lt;/p&gt;
&lt;p&gt;I want to support default function arguments, so I plan to switch to a more
zig/futhark/javascript style function declaration syntax:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;fn osc(size: f32)(uv: [2]f32) [3]f32 = cos (&amp;#39;time * size + (x uv))&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;osc&lt;/code&gt; returns a function of type &lt;code&gt;[2]f32 -&amp;gt; [3]f32&lt;/code&gt;, and &quot;captures&quot; values.
This allows default arguments, while still having &quot;currying&quot; and function
composition as the primary interface for building up patches.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;With the change in season, I&#39;ve taken a small step back from hobby programming
(only on my train commute now) to focus on sewing. I&#39;ve nearly completed a
mockup for a long wool skirt, and it taught me the importance of transferring
all pattern markings. I skipped some out of laziness and it&#39;s come back to bite
me.&lt;/p&gt;
&lt;p&gt;I&#39;m using some dead-stock flannel for the mockup since it has about the right
drape and thickness, but it&#39;s hell to get the seam ripper through it without
tearing up the fabric. I&#39;ve almost got the waistband attached now, but I need to
make sure that the size is accurate since I think I may need to size down from
the mockup for the final skirt.&lt;/p&gt;
&lt;p&gt;I would also like to modify the pockets since I like my pockets deeper, ideally
to finish right where my hands would naturally sit inside them with my arms
fully extended, and I think I may attach the pockets before seaming up the
skirt. The current construction method leaves a small gap between the side seam
and the split for the pockets that I think I could avoid easier of I seamed
everything up from the side after.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>un-abstract</title>
        <published>2026-09-30T00:00:00+00:00</published>
        <updated>2026-09-30T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/un-abstract/"/>
        <id>https://glfmn.io/posts/un-abstract/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/un-abstract/">&lt;h2 id=&quot;abstraction&quot;&gt;Abstraction&lt;/h2&gt;
&lt;p&gt;I&#39;ve noticed a few tropes in the images people place at the top of blog posts
about AI: connected nodes, boxes, brains, even humanoid robots. And always blue.&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;Links&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://unsplash.com/photos/an-abstract-image-of-a-sphere-with-dots-and-lines-nGoCBxiaRO0&quot;&gt;Brain made of connected dots and lines&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://unsplash.com/photos/a-close-up-of-a-computer-circuit-board-tBvF46kmwBw&quot;&gt;Circuits, but kinda organic&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://unsplash.com/photos/a-robot-hand-holding-a-letter-that-says-ai-OFxYMp8VkdI&quot;&gt;Robot hand holding the text &quot;AI&quot; like an offering&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://unsplash.com/photos/ai-artificial-intelligence-concept3d-renderingconceptual-image-aTWKwJllPOA&quot;&gt;Magic blue AI Cube&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;These tropes feel lazy, sloppy, or thoughtless. They also project ideas that
LLMs are mystical or magical, existing in some virtual world &lt;em&gt;abstracted&lt;/em&gt; from
reality.&lt;/p&gt;
&lt;p&gt;Large Language Models require real infrastructure, real materials, and real
labor to operate in the real world. In my opinion, using images of that
infrastructure paints a more honest picture of what &quot;AI&quot; actually is than
throwing up some blue boxes.&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;Links&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://unsplash.com/photos/a-rack-of-servers-in-a-server-room-2JJ3wBHu4_0&quot;&gt;Server Rack&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://unsplash.com/photos/two-server-racks-filled-with-electronic-components-and-wires-k27hkqXuveo&quot;&gt;Another Server Rack&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://unsplash.com/photos/a-bunch-of-wires-that-are-connected-to-a-wall-aG7obD4_EVI&quot;&gt;Power Distribution Units (I think)&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.istockphoto.com/photo/vernon-california-data-center-gm2261145744-673995650&quot;&gt;Data center in California&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.istockphoto.com/photo/data-center-cloud-storage-infrastructure-big-data-server-in-the-netherlands-gm2175694227-595230223&quot;&gt;Data center in the Netherlands&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.istockphoto.com/photo/hutto-data-center-in-texas-for-artificial-intelligence-hyperscale-campus-power-gm2284670826-696503671&quot;&gt;Data center in Texas&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.istockphoto.com/photo/aerial-data-center-exterior-infrastructure-aerial-view-gm2249559336-663325527&quot;&gt;Data center drone photography&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Please consider &lt;em&gt;un&lt;/em&gt;-abstracting &quot;AI&quot;.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>tidal-innards</title>
        <published>2026-09-14T00:00:00+00:00</published>
        <updated>2026-09-16</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/tidal-innards/"/>
        <id>https://glfmn.io/posts/tidal-innards/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/tidal-innards/">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;I impulsively applied to play music at a live coding show that took place on
September 4th. I haven&#39;t livecoded music with a live in-person audience before,
so it was very scary! But it went even better than I could have hoped. I had a
blast, and I learned a &lt;em&gt;lot&lt;/em&gt; about Tidal Cycles in my preparation.&lt;/p&gt;
&lt;p&gt;I thought I&#39;d share some of what I learned to help other live coders hack on and
extend tidal cycles.&lt;/p&gt;
&lt;h2 id=&quot;tidal-basics&quot;&gt;Tidal Basics&lt;/h2&gt;
&lt;p&gt;For the uninitiated, &lt;a href=&quot;https://glfmn.io/posts/tidal-innards/tidalcycles.org&quot;&gt;Tidal Cycles&lt;/a&gt;, also known as &lt;def&gt;&lt;code&gt;tidal&lt;/code&gt;&lt;/def&gt;, is a tool
for writing code that makes music. Here&#39;s an example:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  $&lt;/span&gt;&lt;span&gt; every &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;fast &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  $&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;A&amp;#39;maj&amp;#39;9 C&amp;#39;min&amp;#39;9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;superpiano&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  #&lt;/span&gt;&lt;span&gt; room &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0.1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; size &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0.4&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;tidal&lt;/code&gt; is a music sequencer, implemented as a haskell library. It supports
live manipulation of patterns in a &lt;code&gt;Read-Eval-Print Loop&lt;/code&gt; or &lt;def&gt;&lt;code&gt;REPL&lt;/code&gt;&lt;/def&gt;.
It is one of the original tools for &lt;def&gt;livecoding&lt;/def&gt;: a type of performance
art where the artist writes and shares code live that produces &lt;em&gt;music&lt;/em&gt;, visuals,
poetry, choreography and more.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://glfmn.io/posts/tidal-innards/tidalcycles.org&quot;&gt;Tidal Cycles&lt;/a&gt; supports several standards for interfacing with instruments, but
by default it gets paired with a synthesizer called &lt;a href=&quot;https://glfmn.io/posts/tidal-innards/codeberg.org/&quot;&gt;SuperDirt&lt;/a&gt;. &lt;code&gt;tidal&lt;/code&gt; does
not make its own sounds!&lt;/p&gt;
&lt;p&gt;&lt;code&gt;tidal&lt;/code&gt; works on the notion of a &lt;code&gt;cycle&lt;/code&gt;, which is a repeating pattern of
events. &lt;code&gt;tidal&lt;/code&gt; overrides string literals to represent these cycles in a
notation called &lt;code&gt;mininotation&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0 1 2 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each event in the pattern subdivides the overall cycle into equal parts. This is
a pattern of 4 evenly spaced events (in this case numbers). &lt;code&gt;mininotation&lt;/code&gt; has
its own set of operators to make it easier to express complex patterns. &lt;code&gt;tidal&lt;/code&gt;
also supports manipulating patterns in order to make more interesting musical
structures:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  $&lt;/span&gt;&lt;span&gt; every &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;fast &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  $&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;scale &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;minPent&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0 1 2 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;superpiano&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Every 4 cycles, the pattern of notes will play twice!&lt;/p&gt;
&lt;p&gt;&lt;code&gt;tidal&lt;/code&gt; also supports merging multiple patterns together:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  $&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;a f g d&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;superpiano supergong&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; --&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; this is also a pattern&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;#&lt;/code&gt; operator will match up the events from the pattern on the left
with the pattern on the right, taking the &lt;code&gt;superpiano&lt;/code&gt; &lt;code&gt;sound&lt;/code&gt; for the
notes &lt;code&gt;a f&lt;/code&gt;, and the &lt;code&gt;supergong&lt;/code&gt; &lt;code&gt;sound&lt;/code&gt; for &lt;code&gt;g d&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;But what &lt;em&gt;is&lt;/em&gt; a pattern?&lt;/p&gt;
&lt;h2 id=&quot;innards&quot;&gt;Innards&lt;/h2&gt;
&lt;p&gt;We can ask the &lt;code&gt;tidal&lt;/code&gt;
&lt;abbr title=&quot;Read-Eval-Print Loop&quot;&gt;&lt;code&gt;REPL&lt;/code&gt;&lt;/abbr&gt; about the type of &lt;code&gt;d1&lt;/code&gt; with
&lt;code&gt;:t d1&lt;/code&gt;. It will dutifully report that:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;d1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Tidally&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; IO&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;Tidally&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;For our purposes, this parameter represents the global configuration, clock,
connections, and other state of the running &lt;code&gt;tidal&lt;/code&gt; instance. Through some
magic, we don&#39;t actually need to pass it in!&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;ControlPattern&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;The actual data structure that represents the sequence of musical events.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;IO&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;Think of this as &lt;code&gt;d1&lt;/code&gt; being of type &lt;code&gt;void&lt;/code&gt; but declaring that it has &lt;code&gt;IO&lt;/code&gt; side
effects. In this case, this means sending messages to the connected instruments.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;The real meat of this is the &lt;code&gt;ControlPattern&lt;/code&gt;. We can ask the
&lt;abbr title=&quot;Read-Eval-Print Loop&quot;&gt;&lt;code&gt;REPL&lt;/code&gt;&lt;/abbr&gt; for its definition with &lt;code&gt;:info ControlPattern&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So a &lt;code&gt;ControlPattern&lt;/code&gt; is a &lt;code&gt;Pattern&lt;/code&gt; parameterized against a &lt;code&gt;ValueMap&lt;/code&gt;, which
the &lt;abbr title=&quot;Read-Eval-Print Loop&quot;&gt;&lt;code&gt;REPL&lt;/code&gt;&lt;/abbr&gt; reports is:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; Data.Map.Internal.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;Map&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Value&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So we see now that each event in a pattern represents a collection of names
(keys) with associated values. Let&#39;s look at an example of this in action. If we
print this tidal pattern:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;print &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;superpiano&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;REPL&lt;/code&gt; reports that the output pattern represents an event single event from
time &lt;code&gt;0&lt;/code&gt; to &lt;code&gt;1&lt;/code&gt; with a &lt;code&gt;ValueMap&lt;/code&gt; equivalent to the following:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;superpiano&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; note&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;tidal&lt;/code&gt; will generate an &lt;abbr title=&quot;Open Sound Control&quot;&gt;&lt;code&gt;OSC&lt;/code&gt;&lt;/abbr&gt; message
which encodes the Key-Value pairs of this &lt;code&gt;ValueMap&lt;/code&gt; and sends it to the
configured instruments. By default, this means &lt;code&gt;SuperDirt&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;In the &lt;code&gt;SuperDirt&lt;/code&gt; source, we can find the definition for &lt;code&gt;superpiano&lt;/code&gt;:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;library/default-synths-extra.scd&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;40&lt;/span&gt;&lt;span&gt;SynthDef(\superpiano,{|out, sustain=1, pan, velocity=1, detune=0.1, muffle=1, stereo=0.2, freq=440, accelerate=0, speed=1|&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;41&lt;/span&gt;&lt;span&gt;	var env = EnvGen.ar(Env.linen(0.002, 0.996, 0.002, 1,-3), timeScale:sustain, doneAction:2);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;42&lt;/span&gt;&lt;span&gt;	// the +0.01 to freq is because of edge case rounding internal to the MdaPiano synth&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;43&lt;/span&gt;&lt;span&gt;	var sound = MdaPiano.ar(freq*DirtFreqScale.kr(speed, accelerate, sustain)+0.01,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;44&lt;/span&gt;&lt;span&gt;		vel:velocity*100, hard:0.8*velocity, decay:0.1*sustain,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;45&lt;/span&gt;&lt;span&gt;		tune:0.5, random:0.05, stretch:detune, muffle:0.8*muffle, stereo:stereo);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;46&lt;/span&gt;&lt;span&gt;	Out.ar(out, DirtPan.ar(sound, ~dirt.numChannels, pan, env))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;47&lt;/span&gt;&lt;span&gt;}).add&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;&lt;code&gt;SuperDirt&lt;/code&gt; uses the &lt;code&gt;s&lt;/code&gt; parameter to look up &lt;em&gt;which&lt;/em&gt; synth to play. It
will will also convert &lt;code&gt;note&lt;/code&gt; events to frequencies (&lt;code&gt;freq&lt;/code&gt;), but most other
parameters in a &lt;code&gt;ValueMap&lt;/code&gt; just get passed straight from the message to the
chosen &lt;code&gt;SynthDef&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;It&#39;s worth nothing that some of these parameters are relatively standardized
across &lt;code&gt;SuperDirt&lt;/code&gt; synths and thus have dedicated functions. See &lt;code&gt;pan&lt;/code&gt; and
&lt;code&gt;speed&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;pattern-eh&quot;&gt;Pattern, Eh?&lt;/h2&gt;
&lt;p&gt;Let&#39;s revisit the other half of a &lt;code&gt;ControlPattern&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If a &lt;code&gt;ValueMap&lt;/code&gt; represents the parameters passed to a synth instance, then a
&lt;code&gt;Pattern&lt;/code&gt; adds the dimension of time:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;query&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; State&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;Event&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;             steps&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Maybe&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Rational&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;             pureValue&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Maybe&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Arc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ArcF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Time&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ArcF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; Arc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;start&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; stop&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; State&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; State&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;arc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Arc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; controls&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Event&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; EventF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;ArcF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Time&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; EventF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; Event&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;context&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Context&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;           whole&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Maybe&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;           part&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;           value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;An interesting thing to note here is that the &lt;code&gt;query&lt;/code&gt; member is a function.
It takes a &lt;code&gt;State&lt;/code&gt; which contains an &lt;code&gt;Arc&lt;/code&gt; (and &lt;code&gt;ValueMap&lt;/code&gt;), and returns a
list of events. A fun consequence is that we can create different effects by
manipulating the input or output of the &lt;code&gt;query&lt;/code&gt; function.&lt;/p&gt;
&lt;p&gt;Functions like &lt;code&gt;withQueryArc&lt;/code&gt; can manipulate the time &lt;em&gt;before&lt;/em&gt; resolving
the query, to query a different range of events than normal.&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;tidal-core/src/Sound/Tidal/Pattern.hs&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;603&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;withQueryArc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;Arc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Arc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;604&lt;/span&gt;&lt;span&gt;withQueryArc f pat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; pat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;query&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span&gt; query pat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;State&lt;/span&gt;&lt;span&gt; a m&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; State&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;f a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span&gt; m&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Functions like &lt;code&gt;withResultArc&lt;/code&gt; are able to manipulate the time &lt;em&gt;after&lt;/em&gt; resolving
the query instead:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;tidal-core/src/Sound/Tidal/Pattern.hs&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;588&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;withResultArc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;Arc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Arc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;589&lt;/span&gt;&lt;span&gt;withResultArc f pat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;590&lt;/span&gt;&lt;span&gt;  pat&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;591&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; query&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span&gt; map &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;Event&lt;/span&gt;&lt;span&gt; c w p e&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; Event&lt;/span&gt;&lt;span&gt; c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;f &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;$&amp;gt;&lt;/span&gt;&lt;span&gt; w&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;f p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span&gt; e&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; .&lt;/span&gt;&lt;span&gt; query pat&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;592&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;&lt;code&gt;fast&lt;/code&gt; and &lt;code&gt;slow&lt;/code&gt; work by combining both of these effects at the same time.&lt;/p&gt;
&lt;p&gt;We can create &lt;code&gt;ControlPattern&lt;/code&gt;s from simpler patterns too: &lt;code&gt;tidal&lt;/code&gt; defines a
few different helper functions for defining our own parameters.&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;tidal-core/src/Sound/Tidal/Params.hs&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1378&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;gain&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Double&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1379&lt;/span&gt;&lt;span&gt;gain &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; pF &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;gain&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;It places each value &lt;code&gt;v&lt;/code&gt; from the pattern into a map &lt;code&gt;{ gain: v }&lt;/code&gt; using
the &lt;code&gt;pF&lt;/code&gt; helper function. The &lt;code&gt;F&lt;/code&gt; stands for float, but we can choose other
value types:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;tidal-core/src/Sound/Tidal/Params.hs&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;56&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;pF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Double&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;57&lt;/span&gt;&lt;span&gt;pF name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fmap &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;singleton name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;58&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;59&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;pI&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Int&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;60&lt;/span&gt;&lt;span&gt;pI name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fmap &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;singleton name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VI&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;61&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;62&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;pB&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Bool&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;63&lt;/span&gt;&lt;span&gt;pB name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fmap &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;singleton name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VB&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;64&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;65&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;pR&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Rational&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;66&lt;/span&gt;&lt;span&gt;pR name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fmap &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;singleton name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VR&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;67&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;68&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;pN&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Note&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;69&lt;/span&gt;&lt;span&gt;pN name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fmap &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;singleton name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VN&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;70&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;71&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;pS&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;72&lt;/span&gt;&lt;span&gt;pS name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fmap &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;singleton name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VS&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;&lt;code&gt;tidal&lt;/code&gt; also has a handy helper function for allowing &lt;code&gt;:&lt;/code&gt; separated lists
in mininotation which to become &lt;code&gt;ValueMap&lt;/code&gt;s:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;tidal-core/src/Sound/Tidal/Params.hs&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;33&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;grp&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;34&lt;/span&gt;&lt;span&gt;grp &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span&gt; _ &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; empty&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;35&lt;/span&gt;&lt;span&gt;grp fs p &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; splitby &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;$&amp;gt;&lt;/span&gt;&lt;span&gt; p&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  where&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;37&lt;/span&gt;&lt;span&gt;    splitby name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; Map.&lt;/span&gt;&lt;span&gt;unions &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; map &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; f&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span&gt; f v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; $&lt;/span&gt;&lt;span&gt; zip &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;split name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span&gt; fs&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;38&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    split&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;39&lt;/span&gt;&lt;span&gt;    split &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; wordsBy &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;For example, &lt;code&gt;tidal&lt;/code&gt; defines the &lt;code&gt;sound&lt;/code&gt; in terms of &lt;code&gt;grp&lt;/code&gt;:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;tidal-core/src/Sound/Tidal/Params.hs&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;141&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;sound&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;142&lt;/span&gt;&lt;span&gt;sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; grp &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;[&lt;/span&gt;&lt;span&gt;mS &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; mF &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;n&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;With the use of some helper functions:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;tidal-core/src/Sound/Tidal/Params.hs&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;41&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;42&lt;/span&gt;&lt;span&gt;mF name v &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fromMaybe &lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;empty &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; do&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;43&lt;/span&gt;&lt;span&gt;  f &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span&gt; readMaybe v&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;44&lt;/span&gt;&lt;span&gt;  return &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; Map.&lt;/span&gt;&lt;span&gt;singleton name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VF&lt;/span&gt;&lt;span&gt; f&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;45&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mI&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;47&lt;/span&gt;&lt;span&gt;mI name v &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fromMaybe &lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;empty &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; do&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;48&lt;/span&gt;&lt;span&gt;  i &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span&gt; readMaybe v&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;49&lt;/span&gt;&lt;span&gt;  return &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; Map.&lt;/span&gt;&lt;span&gt;singleton name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VI&lt;/span&gt;&lt;span&gt; i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;50&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;51&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mS&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;52&lt;/span&gt;&lt;span&gt;mS name v &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; Map.&lt;/span&gt;&lt;span&gt;singleton name &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VS&lt;/span&gt;&lt;span&gt; v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Note the helper functions &lt;code&gt;mF&lt;/code&gt; and &lt;code&gt;mS&lt;/code&gt; which operate like &lt;code&gt;pF&lt;/code&gt; and &lt;code&gt;pS&lt;/code&gt;, except
that they parse the value from a &lt;code&gt;String&lt;/code&gt;, and create a &lt;code&gt;ValueMap&lt;/code&gt; instead of a
&lt;code&gt;Pattern ValueMap&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If we break down an example pattern:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;arpy:0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We can manually applying the transformations &lt;code&gt;grp&lt;/code&gt; applies to each event,
1-by-1:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Initial value &lt;code&gt;&quot;arpry:0&quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Split into parts, &lt;code&gt;[&quot;arpy&quot;, &quot;0&quot;]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Convert to maps, &lt;code&gt;&quot;[{s: &quot;apry&quot;}, {n: 0}]&quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Union the maps &lt;code&gt;{s: &quot;arpy&quot;, n: 0}&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;And thus we arrive at a full &lt;code&gt;ControlPattern&lt;/code&gt;. If we omit the &lt;code&gt;:0&lt;/code&gt; part, the
&lt;code&gt;ValueMap&lt;/code&gt; will not contain the &lt;code&gt;n: 0&lt;/code&gt; key-value pair.&lt;/p&gt;
&lt;h2 id=&quot;unions-in-2d&quot;&gt;Unions in 2D&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;tidal&lt;/code&gt;&#39;s &lt;code&gt;ControlPattern&lt;/code&gt;s have 2 dimensions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;Value&lt;/code&gt;s associated with names&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Arc&lt;/code&gt;s of &lt;code&gt;Time&lt;/code&gt;,&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Lets revisit the &lt;code&gt;#&lt;/code&gt; operator.&lt;/p&gt;
&lt;p&gt;In plain words, &lt;code&gt;#&lt;/code&gt; will apply the controls from the right to all events on the
left. Let&#39;s confirm this by looking at its implementation:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Unionable&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;|&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;|&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;Unionable&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;a &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;|&amp;gt;&lt;/span&gt;&lt;span&gt; b &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; flip union &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;$&amp;gt;&lt;/span&gt;&lt;span&gt; a &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;*&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;&amp;lt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;&amp;lt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span&gt; a b &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; keepSteps a &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; applyPatToPatLeft a b&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;applyPatToPatLeft&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;applyPatToPatLeft pf px &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; pattern q&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  where&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    q st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; catMaybes &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; concatMap match &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; query pf st&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;      where&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        match ef &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; map &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;withFX ef&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;query px &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;arc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span&gt; wholeOrPart ef&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        withFX ef ex &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; do&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;          let&lt;/span&gt;&lt;span&gt; whole&amp;#39; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; whole ef&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;          part&amp;#39; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span&gt; subArc &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;part ef&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;part ex&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;          return &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;Event&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;combineContexts &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;[&lt;/span&gt;&lt;span&gt;context ef&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; context ex&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span&gt; whole&amp;#39; part&amp;#39; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;value ef &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; value ex&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;$&amp;gt;&lt;/code&gt; will change the &lt;code&gt;Pattern&lt;/code&gt; of values to a &lt;code&gt;Pattern&lt;/code&gt; of functions, and
&lt;code&gt;applyPatToPatLeft&lt;/code&gt; will:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Iterate the events from the &lt;code&gt;Pattern&lt;/code&gt; of functions&lt;/li&gt;
&lt;li&gt;query the right &lt;code&gt;Pattern&lt;/code&gt; with the arc from the left &lt;code&gt;Event&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;apply the function to the first matching value in the query list&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;ValueMap&lt;/code&gt; implements the &lt;code&gt;Unionable&lt;/code&gt; type-class (interface) by merging the maps
together. If the same key exists in both, it prefers the one from the left.
However, if we &lt;code&gt;flip union&lt;/code&gt;, we prefer values from the &lt;em&gt;right&lt;/em&gt;, creating the
&quot;overriding&quot; behavior.&lt;/p&gt;
&lt;p&gt;We could have, however, chosen to prefer structure from the right and values
from the left. In fact, &lt;code&gt;tidal&lt;/code&gt; defines an operator each of the 4 possible ways
to merge two &lt;code&gt;ControlPattern&lt;/code&gt;s:&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: center&quot;&gt;Operator&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;th&gt;Structure&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center&quot;&gt;&lt;code&gt;|&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Right&lt;/td&gt;&lt;td&gt;Left&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center&quot;&gt;&lt;code&gt;|&amp;lt;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Left&lt;/td&gt;&lt;td&gt;Left&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center&quot;&gt;&lt;code&gt;&amp;lt;|&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Left&lt;/td&gt;&lt;td&gt;Right&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center&quot;&gt;&lt;code&gt;&amp;gt;|&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Right&lt;/td&gt;&lt;td&gt;Right&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 id=&quot;applying-our-knowledge&quot;&gt;Applying our knowledge&lt;/h2&gt;
&lt;p&gt;Knowing all this, lets try do define a handy function for controlling a drum
machine.&lt;/p&gt;
&lt;p&gt;I use the Pulsar-23 as my live-performance drum machine. I sequence it with
&lt;code&gt;tidal&lt;/code&gt; via a midi connection. I map each instrument to the same note
on different midi channels. A basic patch looks something like this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; bass (melodic)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d4 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;- g . g f a -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;pulsar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; midichan &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; bass drum&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0*4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;pulsar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; midichan &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; gain &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1.8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; legato &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0.4&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; snare drum&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[- 0]*2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;pulsar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; midichan &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; gain &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1.8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; legato &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0.2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; high hat&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d3 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[- 0]*4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;pulsar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; midichan &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; gain &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1.8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; legato &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0.1&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Some observations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It&#39;s not really obvious from looking at it which one is which&lt;/li&gt;
&lt;li&gt;This particular setup makes it difficult to write a pattern with events for more
than 1 voice.&lt;/li&gt;
&lt;li&gt;I boost the &lt;code&gt;gain&lt;/code&gt; to compensate for a quirk of how the Pulsar-23 handles midi
velocity, and how &lt;code&gt;SuperDirt&lt;/code&gt; translates &lt;code&gt;gain&lt;/code&gt; to velocity.&lt;/li&gt;
&lt;li&gt;I shorten the the &lt;code&gt;legato&lt;/code&gt; (sustain) because the Pulsar-23 uses
Attack-Sustain-Release envelopes. The default &lt;code&gt;legato&lt;/code&gt; will cause the
drums to stay open and drone instead of sounding percussive.&lt;/li&gt;
&lt;li&gt;I tuned the &lt;code&gt;gain&lt;/code&gt; and &lt;code&gt;legato&lt;/code&gt; to sound better for each different voice&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We can use a handy function called &lt;code&gt;inhabit&lt;/code&gt; that can convert a more friendly
and flexible &lt;code&gt;Pattern String&lt;/code&gt; into a &lt;code&gt;ControlPattern&lt;/code&gt; from a lookup table:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;tidal-core/src/Sound/Tidal/UI.hs&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1943&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;inhabit&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1944&lt;/span&gt;&lt;span&gt;inhabit ps p &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; squeezeJoin &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;\&lt;/span&gt;&lt;span&gt;s &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt; fromMaybe silence &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; lookup s ps&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; &amp;lt;$&amp;gt;&lt;/span&gt;&lt;span&gt; p&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;To define our drums function:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;drums &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; inhabit&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;bd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;pulsar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; midichan &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; gain &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1.8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; legato &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0.4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  ,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;sd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;pulsar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; midichan &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; gain &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1.8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; legato &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0.2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  ,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;hh&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;pulsar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; midichan &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; gain &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1.8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; legato &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0.1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; drums &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;bd sd bd sd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; drums &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[- hh]*4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is already much better and much easier to manipulate live! However, some
of the secret sauce in messing with drums comes from &lt;def&gt;accent patterns&lt;/def&gt;;
that is, changing the velocity/gain or gate-length of the drums to accentuate
certain parts of the beat.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; drums &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;bd sd bd sd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; *&lt;/span&gt;&lt;span&gt; legato &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;1 0.8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note that we have to &lt;em&gt;multiply&lt;/em&gt; the &lt;code&gt;legato&lt;/code&gt; pattern to preserve scaling.&lt;/p&gt;
&lt;h2 id=&quot;challenge-inline-accents&quot;&gt;Challenge: Inline Accents&lt;/h2&gt;
&lt;p&gt;Here&#39;s a fun challenge, can you improve the &lt;code&gt;drums&lt;/code&gt; function to make it possible
to&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Specify the &lt;code&gt;legato&lt;/code&gt;/accent &lt;em&gt;inline&lt;/em&gt; like in the example below?&lt;/li&gt;
&lt;li&gt;Specify the &lt;code&gt;gain&lt;/code&gt; as well?&lt;/li&gt;
&lt;li&gt;Preserve scaling for the &lt;code&gt;gain&lt;/code&gt; and &lt;code&gt;legato&lt;/code&gt; parameters on each voice?&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;d3 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span&gt; drums &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;hh hh:0.8 hh:0.5&amp;gt;*8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It&#39;s much easier to think in terms of &lt;code&gt;1.0&lt;/code&gt; being a full accent for a particular
voice, without the need to mentally convert the scale for each.&lt;/p&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;Before you Continue&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;I think you will get &lt;em&gt;significantly&lt;/em&gt; more understanding if you try to implement
this yourself &lt;em&gt;first&lt;/em&gt; before checking my solution!&lt;/p&gt;
&lt;p&gt;Remember you can use the &lt;code&gt;tidal&lt;/code&gt; &lt;code&gt;REPL&lt;/code&gt; to answer questions about types and
functions with &lt;code&gt;:t&lt;/code&gt; and &lt;code&gt;:info&lt;/code&gt;, and use earlier parts of this post as a
reference. I also recommend that you &lt;a href=&quot;/posts/git-clone&quot;&gt;clone&lt;/a&gt; and read the &lt;a rel=&quot;external&quot; href=&quot;https://codeberg.org/uzu/tidal&quot;&gt;TidalCycles
source code&lt;/a&gt; as necessary.&lt;/p&gt;
&lt;p&gt;If you struggle a bit, that means you are a good student :)&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;hr class=&quot;spoilers&quot;&gt;
&lt;h2 id=&quot;my-solution&quot;&gt;My Solution&lt;/h2&gt;
&lt;p&gt;Did you already attempt the challenge your own way?&lt;/p&gt;
&lt;p&gt;My first attempt was to use &lt;code&gt;grp&lt;/code&gt;! Let&#39;s check its type again:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;grp&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It takes a list of functions which will produce a &lt;code&gt;ValueMap&lt;/code&gt; and converts
a &lt;code&gt;Pattern String&lt;/code&gt; to a &lt;code&gt;ControlPattern&lt;/code&gt;. A first instinct might be to try
doing this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;drums pat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; grp &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;[&lt;/span&gt;&lt;span&gt;mS &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;???&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; mF &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;gain&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; mF &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;legato&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span&gt; pat&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  #&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;plusar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; note &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But it quickly becomes clear that the handy &lt;code&gt;mS&lt;/code&gt; helper will not work: we
don&#39;t want a &lt;code&gt;ValueMap&lt;/code&gt; with the string as the value, but a different &lt;em&gt;base&lt;/em&gt;
&lt;code&gt;ValueMap&lt;/code&gt; for each voice name.&lt;/p&gt;
&lt;p&gt;So instead, we can define our own function taking the idea from &lt;code&gt;inhabit&lt;/code&gt; to look
up our values from a table:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ParamList&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;drumMachine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ParamList&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;drumMachine voices &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; grp &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;[&lt;/span&gt;&lt;span&gt; base &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; mF &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;legato&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; mF &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;gain&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  where&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    --&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Create base ValueMap from the voice table&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    base&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    base voice &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fromMaybe &lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;empty &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; do&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      baseParams &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span&gt; lookup voice voices&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      return &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; Map.&lt;/span&gt;&lt;span&gt;fromList baseParams&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The heavy lifting here comes from &lt;code&gt;Map.fromList&lt;/code&gt;, which we can use to turn a
list of &lt;code&gt;(String, Value)&lt;/code&gt; into a &lt;code&gt;ValueMap&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;We can use the &lt;code&gt;drumMachine&lt;/code&gt; helper function to define our concrete &lt;code&gt;drums&lt;/code&gt;
like so:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);font-style: italic;&quot;&gt;-- |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Control the pulsar drum machine via MIDI&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;-- &amp;gt; drums &amp;quot;bd hh hh sd . bd sd&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;drums&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;drums pat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; drumMachine voices pat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;#&lt;/span&gt;&lt;span&gt; sound &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;pulsar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; #&lt;/span&gt;&lt;span&gt; n &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  where&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    params c l g &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;midichan&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VI&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;legato&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VF&lt;/span&gt;&lt;span&gt; l&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;gain&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;g&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    voices &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;bd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; params &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0.4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      ,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;sd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; params &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0.1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1.8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      ,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;hh&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; params &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0.1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1.8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      ]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But we run into a catch! &lt;code&gt;grp&lt;/code&gt; uses &lt;code&gt;Map.unions&lt;/code&gt; to combine the &lt;code&gt;ValueMap&lt;/code&gt;
defined by &lt;code&gt;mF&lt;/code&gt;, which does not preserve the scaling of &lt;code&gt;legato&lt;/code&gt; and &lt;code&gt;gain&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I found a couple of helpful functions that could help:&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;Map&lt;/code&gt; module defines &lt;code&gt;Map.unionsWith&lt;/code&gt; which accepts a user function for
combining the values, and a tidal function called &lt;code&gt;fNum2&lt;/code&gt;:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;tidal-core/src/Sound/Tidal/Pattern.hs&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1229&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fNum2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Int&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Int&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;Double&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Double&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Double&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Value&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1230&lt;/span&gt;&lt;span&gt;fNum2 fInt _ &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VI&lt;/span&gt;&lt;span&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VI&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VI&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;fInt a b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1231&lt;/span&gt;&lt;span&gt;fNum2 _ fFloat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VF&lt;/span&gt;&lt;span&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VF&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;fFloat a b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1232&lt;/span&gt;&lt;span&gt;fNum2 _ fFloat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VN&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;Note&lt;/span&gt;&lt;span&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VN&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;Note&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VN&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;Note&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; $&lt;/span&gt;&lt;span&gt; fFloat a b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1233&lt;/span&gt;&lt;span&gt;fNum2 _ fFloat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VF&lt;/span&gt;&lt;span&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VN&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;Note&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VN&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;Note&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; $&lt;/span&gt;&lt;span&gt; fFloat a b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1234&lt;/span&gt;&lt;span&gt;fNum2 _ fFloat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VN&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;Note&lt;/span&gt;&lt;span&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VF&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VN&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;Note&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; $&lt;/span&gt;&lt;span&gt; fFloat a b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1235&lt;/span&gt;&lt;span&gt;fNum2 _ fFloat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VI&lt;/span&gt;&lt;span&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VF&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;fFloat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;fromIntegral a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1236&lt;/span&gt;&lt;span&gt;fNum2 _ fFloat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VF&lt;/span&gt;&lt;span&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VI&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VF&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;fFloat a &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;fromIntegral b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1237&lt;/span&gt;&lt;span&gt;fNum2 fInt fFloat &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VState&lt;/span&gt;&lt;span&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span&gt; b &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VState&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;fmap &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;\&lt;/span&gt;&lt;span&gt;a&amp;#39; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt; fNum2 fInt fFloat a&amp;#39; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; .&lt;/span&gt;&lt;span&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1238&lt;/span&gt;&lt;span&gt;fNum2 fInt fFloat a &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;VState&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; VState&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span&gt;fmap &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;fNum2 fInt fFloat a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; .&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;1239&lt;/span&gt;&lt;span&gt;fNum2 _ _ x _ &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; x&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;From this we can glean that &lt;code&gt;fNum2&lt;/code&gt; lifts an arithmetic operator to operate
on any compatible pair of &lt;code&gt;Value&lt;/code&gt;s, keeping the value on the right otherwise.
We can do this for multiplication with my favorite line of haskell I&#39;ve ever
written:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;fNum2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; --&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; I can&amp;#39;t unsee the tits&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So I created a custom version of the &lt;code&gt;grp&lt;/code&gt; function that uses &lt;code&gt;unionsWith&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);font-style: italic;&quot;&gt;-- |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Like @grp@, but combines each `ValueMap` with a union function `u`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;grpWith&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);font-style: italic;&quot;&gt;  -- |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Union function&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;grpWith u fs p &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; splitby &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;$&amp;gt;&lt;/span&gt;&lt;span&gt; p&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  where&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    splitby&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    splitby s &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; Map.&lt;/span&gt;&lt;span&gt;unionsWith u&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;                 $&lt;/span&gt;&lt;span&gt; map &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; f&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span&gt; f v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; $&lt;/span&gt;&lt;span&gt; zip &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;split s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span&gt; fs&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    split&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    split &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; wordsBy &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And updated my &lt;code&gt;drumMachine&lt;/code&gt; helper to use the tits:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;drumMachine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ParamList&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;drumMachine voices &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; grpWith &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;fNum2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt; base &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; mF &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;legato&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ,&lt;/span&gt;&lt;span&gt; mF &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;gain&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  where&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    --&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Create base ValueMap from the voice table&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    base&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ValueMap&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    base voice &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; fromMaybe &lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;Map.&lt;/span&gt;&lt;span&gt;empty &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; do&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      baseParams &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span&gt; lookup voice voices&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      return &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; Map.&lt;/span&gt;&lt;span&gt;fromList baseParams&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now instead of overriding, the &lt;code&gt;legato&lt;/code&gt; and &lt;code&gt;gain&lt;/code&gt; parameters scale the base
value via multiplication.&lt;/p&gt;
&lt;p&gt;I used this version of &lt;code&gt;drumMachine&lt;/code&gt; to control my Pulsar-23 during the show,
and it was really fun and expressive. So there we have it, I hope you are
inspired to create your own helper functions.&lt;/p&gt;
&lt;p&gt;If you want another exercise, try to make a version of &lt;code&gt;scale&lt;/code&gt; which works on a
&lt;code&gt;ControlPattern&lt;/code&gt; instead of a &lt;code&gt;Pattern Int&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; Pattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; String&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; -&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; ControlPattern&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;license&quot;&gt;License&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://glfmn.io/posts/tidal-innards/tidalcycles.org&quot;&gt;Tidal Cycles&lt;/a&gt; is licensed under the GPL v3.0:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;haskell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;{-&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    UI.hs - Tidal&amp;#39;s main &amp;#39;user interface&amp;#39; functions, for transforming&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    patterns, building on the Core ones.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    Copyright (C) 2025, Alex McLean and contributors&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    This library is free software: you can redistribute it and/or modify&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    it under the terms of the GNU General Public License as published by&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    the Free Software Foundation, either version 3 of the License, or&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    (at your option) any later version.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    This library is distributed in the hope that it will be useful,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    GNU General Public License for more details.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    You should have received a copy of the GNU General Public License&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    along with this library.  If not, see &amp;lt;http://www.gnu.org/licenses/&amp;gt;.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;-}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://codeberg.org/musikinformatik/SuperDirt/src/branch/develop/LICENSE&quot;&gt;SuperDirt&lt;/a&gt;
uses the GNU General Public License Version 2.&lt;/p&gt;
&lt;p&gt;Snippets included in this post are presented and re-licensed under the terms of
the compatible Affero GNU General Public License version 3.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>To Database or Not To Database</title>
        <published>2026-07-26T00:00:00+00:00</published>
        <updated>2026-07-26T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/devlog/2026-07-26/"/>
        <id>https://glfmn.io/devlog/2026-07-26/</id>
        
        <content type="html" xml:base="https://glfmn.io/devlog/2026-07-26/">&lt;p&gt;I&#39;ve been working on an implementation of the &lt;a rel=&quot;external&quot; href=&quot;https://willowprotocol.org/specs/data-model/index.html&quot;&gt;willow data model&lt;/a&gt;. As a result,
I&#39;ve had databases on the mind as of late. After reading (probably too many)
papers, I decided to implement the matklad &lt;a rel=&quot;external&quot; href=&quot;https://matklad.github.io/2025/03/19/comptime-zig-orm.html&quot;&gt;comptime ORM tutorial&lt;/a&gt;,
and it really helped me understand what the interface to a database/storage
engine could be.&lt;/p&gt;
&lt;p&gt;I&#39;ve still got a lot to sort out since the willow data model encourages
&lt;a href=&quot;https://glfmn.io/devlog/2026-07-26/willowprotocol.org/more/3dstorage/index.html&quot;&gt;range based queries across 3 dimensions&lt;/a&gt;: &lt;code&gt;path&lt;/code&gt;, &lt;code&gt;subspace id&lt;/code&gt; (a public
key) and &lt;code&gt;timestamp&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The properties of Entries create a few interesting challenges, which the willow
authors summarize pretty well:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Willow requires some features not found in off-the-shelf solutions. While
there exist several solutions for managing and querying multidimensional data
indexed by fixed-width integers or floating point numbers, lexicographically
sorted strings of strings (i.e., Paths) are a different beast. Fingerprint
aggregation is another feature you will not find in SQLite.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Given the Data Model&#39;s unique constraits, I ended up in an analysis paralysis,
and just needed to move forward with something. Thankfully, I remembered
matklad&#39;s &lt;a rel=&quot;external&quot; href=&quot;https://matklad.github.io/2025/03/19/comptime-zig-orm.html&quot;&gt;tutorial&lt;/a&gt;, which was a blast to implement!.&lt;/p&gt;
&lt;p&gt;I love the approach he takes by providing an interface and then directing you to
implement it. I learned a lot just from the provided interface, and even more by
comparing our implementations!&lt;/p&gt;
&lt;p&gt;I was also able to speak a little bit with Sammy and Aljosha, and Aljosha keyed
me into &lt;a rel=&quot;external&quot; href=&quot;https://www.symas.com/lmdb.php&quot;&gt;LMDB&lt;/a&gt;, an in process database/key-value
store which memory maps files, and uses copy-on-write storage, and towards Zip
trees. Now that I&#39;ve done the comptime ORM tutorial, it might be interesting to
experiment a bit with zip trees &amp;amp; using memory mapped files for the database.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>git-clone</title>
        <published>2026-04-02T00:00:00+00:00</published>
        <updated>2026-04-02T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/git-clone/"/>
        <id>https://glfmn.io/posts/git-clone/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/git-clone/">&lt;h2 id=&quot;reading-code&quot;&gt;Reading Code&lt;/h2&gt;
&lt;p&gt;I find that I spend a lot of time reading code when I am learning a new topic.
I used to mostly browse, search, and read code from repositories through
GitHub&#39;s web view. However, GitHub restricted searching code to logged-in
accounts a while back, and has become increasingly punitive about rate limits.
GitHub&#39;s web interface is now basically unusable for me.&lt;/p&gt;
&lt;h2 id=&quot;git-clone&quot;&gt;git clone&lt;/h2&gt;
&lt;p&gt;However, this has gotten me into the habit of just calling
&lt;code&gt;git clone https://github.com/project/path&lt;/code&gt; when I want to dig deeper. It
turns out, just having the code on my computer is way better!&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I don&#39;t need a consistent internet connection&lt;/li&gt;
&lt;li&gt;No rate limits or walled off sections&lt;/li&gt;
&lt;li&gt;Easier to go to a specific head commit&lt;/li&gt;
&lt;li&gt;Much easier to read commit history&lt;/li&gt;
&lt;li&gt;I can build and edit the code&lt;/li&gt;
&lt;li&gt;My editor can display it &lt;em&gt;side-by-side&lt;/em&gt; with the code I am writing&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I wonder how I even got into the habit of using the web interface so heavily in
the first place.&lt;/p&gt;
&lt;p&gt;Don&#39;t browse, &lt;code&gt;git clone&lt;/code&gt; instead.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>html-is-a-tree</title>
        <published>2025-10-23T00:00:00+00:00</published>
        <updated>2025-10-24</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/html-is-a-tree/"/>
        <id>https://glfmn.io/posts/html-is-a-tree/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/html-is-a-tree/">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;A long while ago, I used &lt;code&gt;clojure&lt;/code&gt; for some web development and used
hiccup-style html templates for the first time. For the uninitiated, &lt;code&gt;clojure&lt;/code&gt;
is a &lt;abbr title=&quot;list processing&quot;&gt;lisp&lt;/abbr&gt; dialect. This makes it possible
to directly represent tree structures. For example, here is an HTML document:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;clojure&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:html&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:head&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:link&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; :rel&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;stylesheet&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; :href&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;/style.css&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:body&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:article&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:h1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Hello world!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;This clojure data structure directly encodes an HTML document.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;One can do more than just write static documents this way, as it becomes very
easy to directly inject new structure using code:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;clojure&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;posts&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;load-documents&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;posts/**/*.md&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:html&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:head&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:link&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; :rel&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;stylesheet&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; :href&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;/style.css&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:body&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:article&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:h1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Hello world!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:h2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Read my articles&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:ol&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;map&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;          (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;fn&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;post&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;post-summary&lt;/span&gt;&lt;span&gt; post&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;          posts&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When the whole document has a uniform and consistent representation, it becomes
easy to transform and manipulate. Want to iterate every heading in the doc and
make a table of contents? Easy. Want to collect every link, check if it has
metadata, and make a list of citations at the bottom of your page? Easy.&lt;/p&gt;
&lt;p&gt;I haven&#39;t used a static site generator that fully embraced this, but I never
tried really hard to find one since I had &lt;a rel=&quot;external&quot; href=&quot;https://getzola.org&quot;&gt;zola&lt;/a&gt; and was satisfied, and I knew
it would take a lot of work to migrate.&lt;/p&gt;
&lt;p&gt;I also had some big concerns which nagged away at me:&lt;/p&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;scss&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;I use scss to write my stylesheets, and didn&#39;t want to make the huge
undertaking of translating to raw css if necessary.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;markdown&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;I write my articles with markdown, and translate that to HTML, but I also use a
lot of HTML and &lt;a rel=&quot;external&quot; href=&quot;https://getzola.org/documentation/content/shortcodes/&quot;&gt;shortcodes&lt;/a&gt; embedded &lt;em&gt;within&lt;/em&gt; my markdown documents.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;clojure&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;&lt;code&gt;clojure&lt;/code&gt; (and most Lisps) feel like a heavy dependency, and I didn&#39;t want to
deal with complicated language setup &lt;em&gt;in addition to&lt;/em&gt; complicated dependency
management for the site generator itself. A single binary that I can easily
compile or install from my package manager is &lt;em&gt;very very&lt;/em&gt; hard to beat.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;Interestingly, each of these concerns has diminished over time. This has me
evaluating my options again.&lt;/p&gt;
&lt;h2 id=&quot;just-use-css&quot;&gt;Just Use CSS&lt;/h2&gt;
&lt;p&gt;I found an article called &lt;a rel=&quot;external&quot; href=&quot;https://lyra.horse/blog/2025/08/you-dont-need-js/&quot;&gt;You no longer need JavaScript&lt;/a&gt; which showed just how
far CSS had come. The standard has adopted almost everything I use &lt;code&gt;scss&lt;/code&gt; for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I already make heavy use of CSS variables&lt;/li&gt;
&lt;li&gt;It turns out nesting is standards compliant now&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I really &lt;em&gt;could&lt;/em&gt; just write this site in plain CSS if I wanted to now, and I
don&#39;t expect I would lose much of anything. I use scss &lt;code&gt;@mixins&lt;/code&gt; in a couple of
places, but I think it would be possible to use a simpler solution.&lt;/p&gt;
&lt;h2 id=&quot;limitations-of-markdown-and-zola&quot;&gt;Limitations of Markdown and Zola&lt;/h2&gt;
&lt;p&gt;While text makes up the majority of my documents, I keep finding nice HTML
elements like &lt;code&gt;&amp;lt;dl&amp;gt;&lt;/code&gt; that I want to use, which markdown cannot represent.&lt;/p&gt;
&lt;p&gt;I also find that I need nice ways to express structural data and freely mix
structured data and text. Markdown doesn&#39;t do this well since it only really
supports inline HTML which is verbose, or &lt;a rel=&quot;external&quot; href=&quot;https://getzola.org/documentation/content/shortcodes/&quot;&gt;shortcodes&lt;/a&gt; which are limited.
Markdown also doesn&#39;t allow attributes on elements, which is niche for me, but
useful.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;One&lt;/em&gt; recent pain-point: If I leave extraneous white space in some parts of
my document, the markdown parser will read code as a preformatted text block
instead of HTML or some other a [shortcode] (due to the 4 leading space rule).&lt;/p&gt;
&lt;p&gt;If I put the following inside my markdown document:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;markdown&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;figure&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  display&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; block&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  figcaption&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    display&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; block&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    padding-top&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;em&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    p&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;--fg2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The nested &lt;code&gt;p&lt;/code&gt; selector inside the &lt;code&gt;figcaption&lt;/code&gt; has 4 leading spaces and a new
line in front, making it a code block, resulting in the following html:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;markdown&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;figure&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  display&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; block&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  figcaption&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    display&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; block&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    padding-top&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;em&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;pre&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;code&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;p&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;--fg2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;code&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;pre&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is easy (though annoying) to avoid when writing the document directly, but
quite difficult to avoid with &lt;a rel=&quot;external&quot; href=&quot;https://getzola.org/documentation/content/shortcodes/&quot;&gt;shortcodes&lt;/a&gt;. Sometimes, they have non-trivial
template statements inside them. If I fail to use the proper white space-removal
syntax, the &lt;em&gt;output&lt;/em&gt; of a shortcode may trigger a 4-space code block.&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://getzola.org/documentation/content/shortcodes/&quot;&gt;shortcodes&lt;/a&gt; are not like lisp macros. They do not operate on the
&lt;abbr title=&quot;abstract syntax tree&quot;&gt;&lt;code&gt;AST&lt;/code&gt;&lt;/abbr&gt; or &lt;em&gt;structure&lt;/em&gt; of the document,
they produce a &lt;a rel=&quot;external&quot; href=&quot;https://www.devever.net/~hl/stringtemplates&quot;&gt;soup of letters&lt;/a&gt;. This makes post-processing
impossible as well!&lt;/p&gt;
&lt;h2 id=&quot;do-i-need-markdown&quot;&gt;Do I need markdown?&lt;/h2&gt;
&lt;p&gt;The thing is, while I do need a way to write mostly text documents conveniently,
I don&#39;t necessarily need to use markdown. What I really want, is some way to
transform a lightweight document into some sort of tree structure, and then
perhaps transform &lt;em&gt;that&lt;/em&gt; tree structure into HTML.&lt;/p&gt;
&lt;p&gt;For example, I would like to transform a document like this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;markdown&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);font-weight: bold;&quot;&gt;##&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);font-weight: bold;&quot;&gt; Hobbies&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;My current hobbies include:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;-&lt;/span&gt;&lt;span&gt; 3D art&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;-&lt;/span&gt;&lt;span&gt; live coding&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;-&lt;/span&gt;&lt;span&gt; sewing &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt; embroidery&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;-&lt;/span&gt;&lt;span&gt; blogging&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;But in the past I have enjoyed pottery, bookbinding, and sculpture.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;I am always working on projects and endeavor to write about them&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;from time to time.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Into a data structure like this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;clojure&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:section&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:h1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Hobbies&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;My current hobbies include:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:ul&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;3D art&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;live coding&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;sewing &amp;amp; embroidery&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;blogging&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;But in the past I have enjoyed pottery, bookbinding, and sculpture.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;I am always working on projects and endeavor to write about them&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;from time to time.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And then process that somehow, perhaps rendering it to HTML, perhaps not. Ideally,
the scripting would operate on the level of AST nodes.&lt;/p&gt;
&lt;p&gt;A lisp-y scripting language feels like the perfect fit for something like this.&lt;/p&gt;
&lt;p&gt;As it turns out, people have already experimented with writing mostly-text
documents with lisp code inside; for example, &lt;a rel=&quot;external&quot; href=&quot;https://www-sop.inria.fr/members/Manuel.Serrano/publi/jfp05/article.html&quot;&gt;skribe&lt;/a&gt;! It looks something like
this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;(p [Everything inside square brackets is text, but one can inject code by using&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;lisp&amp;#39;s ,(code &amp;quot;unquote&amp;quot;) form: 1+4=,(+ 1 4)])&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is missing some of the niceties of markdown, but I find the idea of using
something like &lt;code&gt;,()&lt;/code&gt; to inject code which outputs new syntax nodes compelling!&lt;/p&gt;
&lt;h2 id=&quot;enter-janet&quot;&gt;Enter Janet&lt;/h2&gt;
&lt;p&gt;At this point, the ideas were milling about in my head already and &lt;a rel=&quot;external&quot; href=&quot;https://getzola.org&quot;&gt;zola&lt;/a&gt;&#39;s
limitations were getting harder to deal with. I found &lt;a rel=&quot;external&quot; href=&quot;https://dthompson.us/projects/haunt.html&quot;&gt;haunt&lt;/a&gt;, which seemed to
do what I wanted, but I wasn&#39;t able to install it so I gave up.&lt;/p&gt;
&lt;p&gt;Then I found &lt;a rel=&quot;external&quot; href=&quot;https://janet-lang.org&quot;&gt;janet&lt;/a&gt;! It was super easy to install, and it takes a lot of
inspiration from &lt;code&gt;clojure&lt;/code&gt;, which is good since I&#39;ve used Clojure before. I got
hacking away and was able to convert tuples to HTML in a day!&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;clojure&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;defn&lt;/span&gt;&lt;span&gt; html&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;void-tag?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;tag&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;in&lt;/span&gt;&lt;span&gt; html&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;void-tags&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;def-&lt;/span&gt;&lt;span&gt; tab&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;defn-&lt;/span&gt;&lt;span&gt; align&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;string/repeat&lt;/span&gt;&lt;span&gt; tab&lt;/span&gt;&lt;span&gt; i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;defn&lt;/span&gt;&lt;span&gt; html&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;attribute&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;key&lt;/span&gt;&lt;span&gt; value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;string/format&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; %s=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;%s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; key&lt;/span&gt;&lt;span&gt; value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;defn&lt;/span&gt;&lt;span&gt; html&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;attributes&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;dict&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;reduce&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;fn&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;k&lt;/span&gt;&lt;span&gt; v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;string&lt;/span&gt;&lt;span&gt; i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;html/attribute&lt;/span&gt;&lt;span&gt; k&lt;/span&gt;&lt;span&gt; v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;pairs&lt;/span&gt;&lt;span&gt; dict&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;defn&lt;/span&gt;&lt;span&gt; html&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;indent&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;align&lt;/span&gt;&lt;span&gt; indent&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;html/attributes&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;defn&lt;/span&gt;&lt;span&gt; html&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;open&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;indent&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;align&lt;/span&gt;&lt;span&gt; indent&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;html/attributes&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;defn&lt;/span&gt;&lt;span&gt; html&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;close&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;indent&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;align&lt;/span&gt;&lt;span&gt; indent&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;defn&lt;/span&gt;&lt;span&gt; html&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;render&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;indent&lt;/span&gt;&lt;span&gt; el&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;element&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;fn&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span&gt;tag&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span&gt; children&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;cond&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;          (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;not&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;empty?&lt;/span&gt;&lt;span&gt; children&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;html/void-tag?&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;            (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;error&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Void element &lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; declared with children&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;          (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;in&lt;/span&gt;&lt;span&gt; html&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;void-tags&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;html/void&lt;/span&gt;&lt;span&gt; indent&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;          (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;string&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;            (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;html/open&lt;/span&gt;&lt;span&gt; indent&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;            ;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;(map (fn [child] (html/render (+ 1 indent) child)) children)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;            (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;html/close&lt;/span&gt;&lt;span&gt; indent&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;match&lt;/span&gt;&lt;span&gt; el&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;     (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;[&lt;/span&gt;&lt;span&gt;tag&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span&gt; &amp;amp; &lt;/span&gt;&lt;span&gt;children&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dictionary?&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;       (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;element&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span&gt; attr&lt;/span&gt;&lt;span&gt; children&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;     [&lt;/span&gt;&lt;span&gt;tag&lt;/span&gt;&lt;span&gt; &amp;amp; &lt;/span&gt;&lt;span&gt;children&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;       (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;element&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt; children&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;     [&lt;/span&gt;&lt;span&gt;tag&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;       (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;element&lt;/span&gt;&lt;span&gt; tag&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It&#39;s &lt;strong&gt;so&lt;/strong&gt; nice! And it was not too painful to write. This:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;clojure&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;print&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;html/render&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:html&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:head&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:meta&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:body&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;:class&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Outputs this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;  &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;meta&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; /&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;  &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;  &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;  &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);font-weight: bold;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The translator doesn&#39;t properly handle text elements or escaping, but I think
the proof-of-concept of representing the tree-structure of HTML is a success.&lt;/p&gt;
&lt;h2 id=&quot;hare-brained-scheme&quot;&gt;Hare-Brained Scheme&lt;/h2&gt;
&lt;p&gt;At this point, I started having &lt;em&gt;ideas&lt;/em&gt;. &lt;a rel=&quot;external&quot; href=&quot;https://janet-lang.org&quot;&gt;janet&lt;/a&gt; is insanely cool! I decided
to dig into the &lt;a rel=&quot;external&quot; href=&quot;https://janet-lang.org&quot;&gt;janet&lt;/a&gt; C API via &lt;code&gt;zig&lt;/code&gt;. It was super easy to install the
development package through my system package manager and link to it in a
&lt;code&gt;build.zig&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;It took a bit more work to figure out how to actually &lt;em&gt;run&lt;/em&gt; janet code from
within Zig, but I was able to create a function which calls &lt;code&gt;std.log.debug&lt;/code&gt;,
call that from &lt;a rel=&quot;external&quot; href=&quot;https://janet-lang.org&quot;&gt;janet&lt;/a&gt; code that I called from Zig.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;ouroboros&lt;/strong&gt; was complete, and I realized that I could potentially create
a pretty good static-site generator that takes inspiration from &lt;code&gt;zine&lt;/code&gt; and
&lt;code&gt;std.Build&lt;/code&gt;, but using &lt;a rel=&quot;external&quot; href=&quot;https://janet-lang.org&quot;&gt;janet&lt;/a&gt; as the orchestration and templating/translation
language.&lt;/p&gt;
&lt;p&gt;The entry point could be a &lt;code&gt;build.janet&lt;/code&gt; file, which exposes a builder API that
defines the dependency graph of the site, registering janet functions as the
&quot;build pipeline&quot; to transform files from 1 representation into to another until
they get &quot;installed&quot; to the build directory.&lt;/p&gt;
&lt;p&gt;I could write a function that parses &lt;code&gt;md&lt;/code&gt; or &lt;a rel=&quot;external&quot; href=&quot;https://karl-voit.at/2021/11/27/orgdown/&quot;&gt;orgdown&lt;/a&gt; into a &lt;a rel=&quot;external&quot; href=&quot;https://janet-lang.org&quot;&gt;janet&lt;/a&gt; tuple,
splatting code inside &lt;code&gt;,()&lt;/code&gt; forms right into the data.&lt;/p&gt;
&lt;p&gt;Since &lt;a rel=&quot;external&quot; href=&quot;https://janet-lang.org&quot;&gt;janet&lt;/a&gt; also lets one create handlers to use when &lt;code&gt;import&lt;/code&gt;ing files, I
could maybe re-use the &lt;code&gt;import&lt;/code&gt; functionality to register &lt;em&gt;those&lt;/em&gt; files in the
dependency graph for rebuild and watch support.&lt;/p&gt;
&lt;p&gt;Suddenly things are feeling dangerously exciting!&lt;/p&gt;
&lt;p&gt;And that is where I am now. I intend to prototype this in the most janky,
single-threaded way possible and see where it goes :)&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>email-fail</title>
        <published>2025-09-13T00:00:00+00:00</published>
        <updated>2025-09-13T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/email-fail/"/>
        <id>https://glfmn.io/posts/email-fail/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/email-fail/">&lt;h2 id=&quot;description&quot;&gt;Description&lt;/h2&gt;
&lt;p&gt;I&#39;ve had a good experience with email exactly once. But it had a fatal flaw.&lt;/p&gt;
&lt;h2 id=&quot;i-struggle-with-email&quot;&gt;I struggle with email&lt;/h2&gt;
&lt;p&gt;The more time passes, the more I struggle with email. My inbox grows faster
than I can deal with it. Mostly spam I never signed up for, emails that are
irrelevant after a few days, or emails where I already know everything I need
to know from glancing at the subject. And worse: the more time passes, the less
patience and focus I seem to have for dealing with useless emails.&lt;/p&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;ADHD&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;I recently got diagnosed with ADHD, and I think that has a lot to do with my
relationship with email. There&#39;s something about the default mail interface that
destroys my executive function.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;p&gt;I have always been on the lookout for a way to actually make email work better
for me. One day, when I heard about an email system called &lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/&quot;&gt;notmuch&lt;/a&gt; that could
handle a million emails quickly and without slowing down. I decided to try it
out!&lt;/p&gt;
&lt;h2 id=&quot;a-golden-age-of-a-kind&quot;&gt;A Golden Age, of a kind&lt;/h2&gt;
&lt;p&gt;The &lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/&quot;&gt;notmuch&lt;/a&gt; interface that I tried is actually embedded inside &lt;a rel=&quot;external&quot; href=&quot;https://www.gnu.org/software/emacs/&quot;&gt;Emacs&lt;/a&gt;.
It gives you nothing but a search bar. Instead of an inbox, you add a set of
default &lt;em&gt;searches&lt;/em&gt; to the start screen. Each default search you add gets a
button and a count of how many emails match the query.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The key insight is that you should only see emails you are looking for!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;By comparison, webmail shows you an inbox with everything, and you have to sort
email &lt;em&gt;out&lt;/em&gt; with rules. I find it easier to describe what I want than what I
don&#39;t want.&lt;/p&gt;
&lt;p&gt;Webmail is also painfully slow, requiring internet. I&#39;ve also not seen a webmail
client that expresses batch operations well.&lt;/p&gt;
&lt;p&gt;The default mode of &lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/&quot;&gt;notmuch&lt;/a&gt; is batch mode! You can trivially do every
operation on thousands of emails (if you need to, and I have in practice).
&lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/&quot;&gt;notmuch&lt;/a&gt; even has a handy scripting interface, for using queries to apply tags
automatically. Filters, but way better and more expressive when used sparingly.&lt;/p&gt;
&lt;p&gt;It was amazing, but sadly it was not fated to last.&lt;/p&gt;
&lt;h2 id=&quot;the-fatal-flaw&quot;&gt;The Fatal Flaw&lt;/h2&gt;
&lt;p&gt;I have lied a little. &lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/&quot;&gt;notmuch&lt;/a&gt; is not an email client. It only does mail indexing.
The client was an &lt;a rel=&quot;external&quot; href=&quot;https://www.gnu.org/software/emacs/&quot;&gt;Emacs&lt;/a&gt; package. Furthermore, &lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/&quot;&gt;notmuch&lt;/a&gt; does not
&lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/getting-started/#index1h2&quot;&gt;fetch email&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Following the Unix Philosophy, it does 1 thing and 1 thing ridiculously well:
index &amp;amp; tag emails.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This is beautiful. But it is also painful.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The Unix philosophy works well for APIs, for command line tools, but I
don&#39;t think it works for email. At least not for me. I want a flexible email
experience, but I don&#39;t want to engineer my emails.&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/doc/latest/man1/notmuch-config.html&quot;&gt;notmuch&lt;/a&gt;, &lt;a rel=&quot;external&quot; href=&quot;https://github.com/OfflineIMAP/offlineimap/blob/master/offlineimap.conf&quot;&gt;offlineimap&lt;/a&gt;, &lt;a rel=&quot;external&quot; href=&quot;https://www.gnu.org/software/emacs/&quot;&gt;Emacs&lt;/a&gt;, and
&lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/notmuch-emacs/&quot;&gt;notmuch-emacs&lt;/a&gt; each have
&lt;a rel=&quot;external&quot; href=&quot;https://www.offlineimap.org/doc/contrib/systemd.html&quot;&gt;complex installation&lt;/a&gt;, configuration, and maintenance!&lt;/p&gt;
&lt;p&gt;These are the tools for making a great email client, they are not a great email
client.&lt;/p&gt;
&lt;p&gt;And worse, you have to do it again for a different machine! And set up
&lt;a rel=&quot;external&quot; href=&quot;https://www.muchsync.org/&quot;&gt;yet another utility&lt;/a&gt; to sync your tags between machines.&lt;/p&gt;
&lt;p&gt;Our non-techie friends deserve an email experience that is just as fast and flexible
as what &lt;a rel=&quot;external&quot; href=&quot;https://notmuchmail.org/&quot;&gt;notmuch&lt;/a&gt; affords. This is my plea that someone will manage to take
these tools and package them all together in a way that is even easier to set up
than &lt;a rel=&quot;external&quot; href=&quot;https://www.thunderbird.net/&quot;&gt;Thunderbird&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;At least for me, the &quot;Unix way&quot; of handling email is worse-is-better in
disguise. And worse isn&#39;t better for me. It feels like we need to gather all of
these amazing open source developers in one room to make something cohesive, and
I wish I had the money or power or charisma to make that happen.&lt;/p&gt;
&lt;h2 id=&quot;closing-notes&quot;&gt;Closing Notes&lt;/h2&gt;
&lt;p&gt;I am writing this after trying to use &lt;a rel=&quot;external&quot; href=&quot;https://aerc-mail.org/&quot;&gt;aerc&lt;/a&gt; for
&lt;a rel=&quot;external&quot; href=&quot;https://man.sr.ht/git.sr.ht/send-email.md&quot;&gt;sourcehut&#39;s git send-email workflow&lt;/a&gt;. It kinda does what I hoped for: it syncs
email, has an inbox, and composition view. It really does feel like a wrapper
that manages the same underlying primitives mentioned above.&lt;/p&gt;
&lt;p&gt;Unfortunately, &lt;a rel=&quot;external&quot; href=&quot;https://aerc-mail.org/&quot;&gt;aerc&lt;/a&gt; emulates the interface of webmail in the terminal.
For me, this has the same workflow and focus problems. I also found it a
bit janky in practice. The hotkey choices feel unintuitive (I know they are
configurable), and I kept having issues where it would fail to send an email and
seemingly discard the message I had just composed. There were also holes in the
documentation (that I might send some patches for if I can figure out how to send
emails with git).&lt;/p&gt;
&lt;p&gt;I may try &lt;a rel=&quot;external&quot; href=&quot;https://neomutt.org/&quot;&gt;neomutt&lt;/a&gt; next, but I honestly want something &lt;em&gt;slightly&lt;/em&gt; more than a
terminal. A lot of &lt;em&gt;mostly&lt;/em&gt; text user interfaces need just a bit more, and Emacs
gets the balance just right focusing on text but giving you just a bit more.
Unfortunately, Emacs can feel as heavy as an electron application!&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>links</title>
        <published>2025-09-11T00:00:00+00:00</published>
        <updated>2026-10-23</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/links/"/>
        <id>https://glfmn.io/links/</id>
        
        <content type="html" xml:base="https://glfmn.io/links/">&lt;h2 id=&quot;description&quot;&gt;Description&lt;/h2&gt;
&lt;p&gt;Inspired by &lt;a rel=&quot;external&quot; href=&quot;https://matklad.github.io/2025/08/23/links.html&quot;&gt;&lt;code&gt;matklad&lt;/code&gt;&lt;/a&gt; and &lt;a rel=&quot;external&quot; href=&quot;https://drewdevault.com/2025/03/27/2025-03-27-Using-linkhut.html&quot;&gt;Drew DeVault&lt;/a&gt;, I wanted a permenant place to
collect links that have helped me in order to build knowledge and signal boost
them.&lt;/p&gt;
&lt;h2 id=&quot;live-coding&quot;&gt;Live Coding&lt;/h2&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;What is live coding?&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://blog.toplap.org/about/&gt;https://blog.toplap.org/about/&lt;/a&gt;&lt;br/&gt;
  &lt;blockquote&gt;
&lt;p&gt;Live coding is a new direction in electronic music and video, and is getting
somewhere interesting. Live coders expose and rewire the innards of software
while it generates improvised music and/or visuals. All code manipulation
is projected for your pleasure. Live coding works across musical genres, and
has been seen in concert halls, late night jazz bars, as well as algoraves.
There is also a strong movement of video-based live coders, writing code to
make visuals, and many environments can do both sound and video, creating
synaesthetic experiences.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;TOPLAP Manifesto Draft&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://toplap.org/wiki/ManifestoDraft&gt;https://toplap.org/wiki/ManifestoDraft&lt;/a&gt;&lt;br/&gt;
  This manifesto is partly toungue in cheek, but it does underscore some of the
values and ideas behind live coding.
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&quot;graphics&quot;&gt;Graphics&lt;/h2&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Rendering Crispy Text on The GPU&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://osor.io/text&gt;https://osor.io/text&lt;/a&gt;&lt;br/&gt;
  How to render text on the GPU, focused on the parts that I find interesting.
With a number of surprisingly elegant tricks.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Avoiding Trigonometry&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://iquilezles.org/articles/noacos/&gt;https://iquilezles.org/articles/noacos/&lt;/a&gt;&lt;br/&gt;
  Insights on how to make graphics programming simpler by using vectors more.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Shader Basics, Blending &amp; Textures&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://www.youtube.com/watch?v=kfM-yu0iQBk&gt;https://www.youtube.com/watch?v=kfM-yu0iQBk&lt;/a&gt;&lt;br/&gt;
  A great intro to how shaders work, from the shader sorceress herself.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Graphics Studies Compilation&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://www.adriancourreges.com/blog/2020/12/29/graphics-studies-compilation/&gt;https://www.adriancourreges.com/blog/2020/12/29/graphics-studies-compilation/&lt;/a&gt;&lt;br/&gt;
  Arain Courrèges and others break down how various different games render their
scenes, with expert commentary.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;How I learned Vulkan and wrote a small game engine with it&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://edw.is/learning-vulkan/&gt;https://edw.is/learning-vulkan/&lt;/a&gt;&lt;br/&gt;
  Learning Vulkan is not impossible if you avoid OOP.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;José Henriques&#39;s Vulkan Tutorial&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://jhenriques.net/development.html#tutorial_016&gt;https://jhenriques.net/development.html#tutorial_016&lt;/a&gt;&lt;br/&gt;
  A simple and straightforward vulkan tutorial that does not use the Vulkan Memory Allocator.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;It&#39;s not the API&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://www.youtube.com/live/zYAif5PhhoQ?t=21434&gt;https://www.youtube.com/live/zYAif5PhhoQ?t=21434&lt;/a&gt;&lt;br/&gt;
  Vulkan can potentially be simpler if you embrace first principles.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Vulkan with Wayland&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://amini-allight.org/post/using-wayland-with-vulkan&gt;https://amini-allight.org/post/using-wayland-with-vulkan&lt;/a&gt;&lt;br/&gt;
  Using Wayland directly with Vulkan is a bit daunting. Worse, it is hard to
find an example that doesn&#39;t use C++ classes or split everything into too many
abstractions. Amini Allight to the rescue with a blog post and a
&lt;a rel=&quot;external&quot; href=&quot;https://gitlab.com/amini-allight/wayland-vulkan-example&quot;&gt;single .c file.&lt;/a&gt;.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Image presentation in libvulkan_intel.so&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://badland.io/vulkan-swapchain.md&gt;https://badland.io/vulkan-swapchain.md&lt;/a&gt;&lt;br/&gt;
  A small peak into how the vulkan driver uses linux kernel APIs to render images
to the screen.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Mesa Wayland WSI imlpementation&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://gitlab.freedesktop.org/mesa/mesa/-/blob/8730c039bf37e8dba25ae76067dda68a1ab6a870/src/vulkan/wsi/wsi_common_wayland.c&gt;https://gitlab.freedesktop.org/mesa/mesa/-/blob/8730c039bf37e8dba25ae76067dda68a1ab6a870/src/vulkan/wsi/wsi_common_wayland.c&lt;/a&gt;&lt;br/&gt;
  Mesa&#39;s Vulkan WSI implementation for vulkan, where one can see how the wayland
surface interacts with the swapchain under the hood.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Vulkan Loader docs for Application Developers&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://vulkan.lunarg.com/doc/sdk/1.4.328.1/windows/LoaderApplicationInterface.html&gt;https://vulkan.lunarg.com/doc/sdk/1.4.328.1/windows/LoaderApplicationInterface.html&lt;/a&gt;&lt;br/&gt;
  What you should understand about the LunarG vulkan loader as an application
developer, namely how to link it, and what it does.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Wayland Linux DMA-BUF protocol&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://wayland.app/protocols/linux-dmabuf-v1&gt;https://wayland.app/protocols/linux-dmabuf-v1&lt;/a&gt;&lt;br/&gt;
  Passing buffers owned by the linux graphics subsystem. See also
&lt;a rel=&quot;external&quot; href=&quot;https://www.kernel.org/doc/html/next/userspace-api/dma-buf-alloc-exchange.html&quot;&gt;the kernel documentation&lt;/a&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&quot;software-development&quot;&gt;Software Development&lt;/h2&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Resillient LL Parsing&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://matklad.github.io/2023/05/21/resilient-ll-parsing-tutorial.html&gt;https://matklad.github.io/2023/05/21/resilient-ll-parsing-tutorial.html&lt;/a&gt;&lt;br/&gt;
  How to write a parser that accomodates syntax errors. Especially useful for
writing editor tools.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Things You Should Never Do, Part 1&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/&gt;https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/&lt;/a&gt;&lt;br/&gt;
  Wisdom about the real costs of re-writing code from scratch.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Contempt Culture&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://blog.aurynn.com/2015/12/16-contempt-culture&gt;https://blog.aurynn.com/2015/12/16-contempt-culture&lt;/a&gt;&lt;br/&gt;
  On the phenomenon of programming communities which signify values and group
membership through contempt.
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&quot;system-administration&quot;&gt;System Administration&lt;/h2&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Consolidated Guide to Using Yubikeys with Linux&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://marcusb.org/posts/2024/03/consolidated-guide-to-using-yubikeys-with-linux/#remotesudo&gt;https://marcusb.org/posts/2024/03/consolidated-guide-to-using-yubikeys-with-linux/#remotesudo&lt;/a&gt;&lt;br/&gt;
  A guide to going passwordless with yubikeys. Having dabbled in this, I really
wish it was more seamless!
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&quot;society&quot;&gt;Society&lt;/h2&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;ZIRP+174 Took Your Job, not AI&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://www.frank.computer/blog/2025/11/zirp-174.html&gt;https://www.frank.computer/blog/2025/11/zirp-174.html&lt;/a&gt;&lt;br/&gt;
  Alternate explanation and perspective on tech layoffs since 2022.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;You Can&#39;t Fight Enshittification&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://pluralistic.net/2025/07/31/unsatisfying-answers/&gt;https://pluralistic.net/2025/07/31/unsatisfying-answers/&lt;/a&gt;&lt;br/&gt;
  I&#39;ve noticed a lot of people in discussions miss the key meaning behind the term
&lt;em&gt;Enshittification&lt;/em&gt;: Enshittification is deliberate and systemic. We can&#39;t stop
it by just writing better software!
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;The Male Glance&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://www.vqronline.org/spring-2018/essays/male-glance&gt;https://www.vqronline.org/spring-2018/essays/male-glance&lt;/a&gt;&lt;br/&gt;
  If &lt;em&gt;The Male Gaze&lt;/em&gt; is a pre-occupation with women&#39;s physical appearance, &lt;em&gt;The
Male Glance&lt;/em&gt; is the dismissal of women&#39;s work and art as shallow and unworthy of
deeper consideration.
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&quot;web-development&quot;&gt;Web Development&lt;/h2&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;You no longer need JavaScript&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://lyra.horse/blog/2025/08/you-dont-need-js/&gt;https://lyra.horse/blog/2025/08/you-dont-need-js/&lt;/a&gt;&lt;br/&gt;
  Some really cool things one can do with CSS and HTML that have me rethinking
how I write this blog.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Against Horizontal Scroll&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://matklad.github.io/2025/04/22/horizontal-scroll.html&gt;https://matklad.github.io/2025/04/22/horizontal-scroll.html&lt;/a&gt;&lt;br/&gt;
  Tips on preventing horizontal scroll for websites.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Data Oriented Blogging&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://matklad.github.io/2023/11/07/dta-oriented-blogging.html&gt;https://matklad.github.io/2023/11/07/dta-oriented-blogging.html&lt;/a&gt;&lt;br/&gt;
  Touches on something I have felt which is that a lot of static site generators
ignore the tree-based nature of HTML, which makes writing structured documents
harder.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Producing HTML using string templates has always been the wrong solution&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://www.devever.net/~hl/stringtemplates&gt;https://www.devever.net/~hl/stringtemplates&lt;/a&gt;&lt;br/&gt;
  An instrumental document in helping me understand why I don&#39;t like hugo style
shortcodes.
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&quot;video-games&quot;&gt;Video Games&lt;/h2&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Game Wikis&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://getindie.wiki/listings/&gt;https://getindie.wiki/listings/&lt;/a&gt;&lt;br/&gt;
  A listing of classic, honest-to-goodness video game wikis. None of the SEO
optimized, add-stuffed &quot;fandom&quot; sites.
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&quot;webcomics-and-graphic-novels&quot;&gt;WebComics and Graphic Novels&lt;/h2&gt;
&lt;p&gt;I read a lot of webcomics and graphic novels, here are some of my favorites:&lt;/p&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Kill Six Billion Demons&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://killsixbilliondemons.com/comic/ksbd-chapter-1-1/&gt;https://killsixbilliondemons.com/comic/ksbd-chapter-1-1/&lt;/a&gt;&lt;br/&gt;
  KILL SIX BILLION DEMONS!
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Dark Science&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://dresdencodak.com/2010/06/03/dark-science-01/&gt;https://dresdencodak.com/2010/06/03/dark-science-01/&lt;/a&gt;&lt;br/&gt;
  Captures something fascinating about living in the age of social media. Also gay
as hell.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;3rd Voice&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://rice-boy.com/3rdvoice/&gt;https://rice-boy.com/3rdvoice/&lt;/a&gt;&lt;br/&gt;
  Interesting fantasy post apocalypse.
More than 1 great webcomic on this site! Also, peak webcomic site design.
Everyone do it like this please.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;What Happens Next&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://whathappensnext.webcomic.ws/comics/1&gt;https://whathappensnext.webcomic.ws/comics/1&lt;/a&gt;&lt;br/&gt;
  Deconstruction of true crime, with prominent trans themes.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Ava&#39;s Demon&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://avasdemon.com/pages.php#0001&gt;https://avasdemon.com/pages.php#0001&lt;/a&gt;&lt;br/&gt;
  Beautifully illustrated comic about mental illness and tyranny.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;The Guy She Was Interested In Wasn&#39;t a Guy At All&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://dynasty-scans.com/series/the_guy_she_was_interested_in_wasnt_a_guy_at_all&gt;https://dynasty-scans.com/series/the_guy_she_was_interested_in_wasnt_a_guy_at_all&lt;/a&gt;&lt;br/&gt;
  The title says it all: cute queer romance.
&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;
  &lt;link-item-title&gt;Gunerkrigg Court&lt;/link-item-title&gt;
&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;
  &lt;a class=&quot;url&quot; href=https://www.gunnerkrigg.com/?p=1&gt;https://www.gunnerkrigg.com/?p=1&lt;/a&gt;&lt;br/&gt;
  British Magic School, but with a unique tone, setting, and concept.
&lt;/dd&gt;
&lt;/dl&gt;
</content>
        
    </entry>
      
    <entry xml:lang="en">
        <title>optimize-hydra</title>
        <published>2025-08-14T00:00:00+00:00</published>
        <updated>2025-08-14T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/optimize-hydra/"/>
        <id>https://glfmn.io/posts/optimize-hydra/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/optimize-hydra/">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Recently, I have become obsessed with &lt;a href=&quot;https://glfmn.io/posts/optimize-hydra/hydra.ojack.xyz&quot;&gt;hydra&lt;/a&gt;, a web-based library for
live coding graphics. Using hydra, a live-coder can create fun audio-reactive
visuals in an intuitive and fun way. Here is a simple &lt;a rel=&quot;external&quot; href=&quot;https://hydra.ojack.xyz/?code=b3NjKDEwJTJDMC4xJTJDMC4yKSUwQSUyMCUyMC5jb2xvcigwLjElMkMlMjAwLjIlMkMlMjAwLjQpJTBBJTIwJTIwLm1vZHVsYXRlUm90YXRlKHNoYXBlKCklMkMlMjAyKSUwQSUyMCUyMC5kaWZmKG8wKSUwQSUyMCUyMC5zY3JvbGxZKDAuMSklMEElMjAlMjAucm90YXRlKDAlMkMwLjEpJTBBJTIwJTIwLm91dCgpJTBB&quot;&gt;example&lt;/a&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateRotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This chain of functions produces a transform tree, which hydra uses to generate
and run a &lt;abbr title=&quot;Graphics Library Shading Language&quot;&gt;GLSL&lt;/abbr&gt; shader.&lt;/p&gt;
&lt;p&gt;Hydra is super easy to use once you understand the general principles, but being
me I got really curious about how it worked. As I understood hydra better, I
started poking around the source code in order to extend hydra, and found an
opportunity to optimize the output GLSL code.&lt;/p&gt;
&lt;p&gt;Here is an explanation of how hydra works, and the changes I have proposed.&lt;/p&gt;
&lt;h2 id=&quot;how-hydra-works&quot;&gt;How Hydra Works&lt;/h2&gt;
&lt;p&gt;First, lets look at some basic examples.&lt;/p&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;Extracting the GLSL&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;In a browser console window, instead of calling &lt;code&gt;out&lt;/code&gt; to render the hydra,
try this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;console&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;log&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;10&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;glsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;frag&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;p&gt;The simplest hydra I can think of is:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;10&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This hydra generates the following &lt;code&gt;glsl&lt;/code&gt; code, which draws a sine wave across
the screen:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;vec2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;_st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; frequency&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; sync&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; _st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  float&lt;/span&gt;&lt;span&gt; r &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; sin&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;-&lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span&gt;frequency&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;+&lt;/span&gt;&lt;span&gt;time&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span&gt;sync&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span&gt;frequency&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  float&lt;/span&gt;&lt;span&gt; g &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; sin&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;+&lt;/span&gt;&lt;span&gt;time&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span&gt;sync&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span&gt;frequency&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  float&lt;/span&gt;&lt;span&gt; b &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; sin&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;+&lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span&gt;frequency&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;+&lt;/span&gt;&lt;span&gt;time&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span&gt;sync&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span&gt;frequency&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;r&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; g&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the &lt;code&gt;main&lt;/code&gt; function, we can see a pretty straightforward relationship
between our hydra code and the generated GLSL. But where does the &lt;code&gt;osc&lt;/code&gt; function
definition actually come from, and where do those extra numbers come from?&lt;/p&gt;
&lt;p&gt;Hydra has a file called &lt;code&gt;src/glsl/glsl-functions.js&lt;/code&gt; which contains an array of
objects; each object contains the actual source of the GLSL function, as well as
some metadata that hydra needs in order to create the shader:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/glsl/glsl-functions.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;138&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;139&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;140&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;141&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;142&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;143&lt;/span&gt;&lt;span&gt;      type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;144&lt;/span&gt;&lt;span&gt;      name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;frequency&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;145&lt;/span&gt;&lt;span&gt;      default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;146&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;147&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;148&lt;/span&gt;&lt;span&gt;      type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;149&lt;/span&gt;&lt;span&gt;      name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;sync&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;150&lt;/span&gt;&lt;span&gt;      default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;151&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;152&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;153&lt;/span&gt;&lt;span&gt;      type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;154&lt;/span&gt;&lt;span&gt;      name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;155&lt;/span&gt;&lt;span&gt;      default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;156&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;157&lt;/span&gt;&lt;span&gt;  ]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;158&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  glsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;159&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;   vec2 st = _st;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;160&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;   float r = sin((st.x-offset/frequency+time*sync)*frequency)*0.5  + 0.5;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;161&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;   float g = sin((st.x+time*sync)*frequency)*0.5 + 0.5;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;162&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;   float b = sin((st.x+offset/frequency+time*sync)*frequency)*0.5  + 0.5;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;163&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;   return vec4(r, g, b, 1.0);&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;164&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;The first thing that jumps out to me is the &lt;code&gt;glsl&lt;/code&gt; entry, which contains the
&lt;em&gt;body&lt;/em&gt; of the &lt;code&gt;osc&lt;/code&gt; function in our GLSL code, and the &lt;code&gt;inputs&lt;/code&gt; array which
seems to match some of the GLSL function arguments.&lt;/p&gt;
&lt;p&gt;If we look at the output from the shader again:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We see the extra numbers are the &lt;code&gt;default&lt;/code&gt; values from the &lt;code&gt;inputs&lt;/code&gt; array!&lt;/p&gt;
&lt;p&gt;What we don&#39;t see, however, is the &lt;em&gt;return type&lt;/em&gt; in the function definition,
anything related to the &lt;code&gt;st&lt;/code&gt;/&lt;code&gt;_st&lt;/code&gt; parameter, or any immediate explanation for
the &lt;code&gt;type: &#39;src&#39;&lt;/code&gt; key. Helpfully, a comment at the top of the file explains
that the &lt;code&gt;type&lt;/code&gt; corresponds to an entry here:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generator-factory.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;74&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; typeLookup&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;76&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;77&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2 _st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;78&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;79&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;coord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;80&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;81&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2 _st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;82&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;83&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;84&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;85&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4 _c0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;86&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;87&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;88&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;89&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4 _c0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4 _c1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;90&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;92&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;93&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2 _st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4 _c0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;94&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;95&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Hydra defines a few built-in categories of functions with required arguments. We
also see that the functions only return &lt;code&gt;vec4&lt;/code&gt; or &lt;code&gt;vec2&lt;/code&gt;. Let&#39;s take a look at a
more complicated hydra to get some more insight:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;10&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We added the &lt;code&gt;rotate&lt;/code&gt; function which is of type &lt;code&gt;coord&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We see that hydra inserts &lt;code&gt;rotate&lt;/code&gt; function call into the &lt;code&gt;_st&lt;/code&gt; argument of
&lt;code&gt;osc&lt;/code&gt;, thus changing the coordinates that go into the &lt;code&gt;osc&lt;/code&gt; by rotating them
before calculating sine wave gets calculated.&lt;/p&gt;
&lt;p&gt;If we add a call to a &lt;code&gt;color&lt;/code&gt; type function called &lt;code&gt;thresh&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;10&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;thresh&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We can see that hydra nests the &lt;code&gt;osc(rotate)&lt;/code&gt; expression into the &lt;code&gt;_c0&lt;/code&gt; argument
of &lt;code&gt;thresh&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; thresh&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;04&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Let&#39;s look at a more complicated example:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;10&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;thresh&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Analyzing the GLSL with all the numbers removed, so we can see the overall
structure:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;thresh&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;st&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;                          ^^^&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We see that starting with the &#39;source&#39; &lt;code&gt;osc&lt;/code&gt; function, the &lt;code&gt;color&lt;/code&gt; functions
appear from &lt;code&gt;right&lt;/code&gt; to &lt;code&gt;left&lt;/code&gt;, and the &lt;code&gt;coord&lt;/code&gt; functions appear from &lt;code&gt;left&lt;/code&gt; to
&lt;code&gt;right&lt;/code&gt; in order to have the correct ordering.&lt;/p&gt;
&lt;p&gt;In other words, &lt;code&gt;coord&lt;/code&gt; functions nest deeper &lt;em&gt;inside&lt;/em&gt; the expression, and
&lt;code&gt;color&lt;/code&gt; functions wrap the previous parts of the expression.&lt;/p&gt;
&lt;p&gt;Let&#39;s look at one final example for now, using a &lt;code&gt;combine&lt;/code&gt; function:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;10&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;thresh&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;combine&lt;/code&gt; and &lt;code&gt;combineCoord&lt;/code&gt; type functions are interesting: they allow us to
provide another &lt;code&gt;src&lt;/code&gt; chain as an argument, creating a tree structure:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;osc(10)   osc(12,0.2)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    \    /&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;   diff(|)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;     |&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;   rotate()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;     |&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;   thresh()&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We can see this tree structure more clearly in the shader that hydra generated.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; thresh&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 12&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However, we notice something interesting! Even though &lt;code&gt;rotate&lt;/code&gt; only appears
once in the hydra, it shows up &lt;strong&gt;twice&lt;/strong&gt; in the generated GLSL shader in the
&lt;code&gt;_st&lt;/code&gt; arg position for &lt;em&gt;both&lt;/em&gt; calls to &lt;code&gt;osc&lt;/code&gt;! This is because in order for the
&lt;code&gt;rotate&lt;/code&gt; function to affect all nodes in the tree above it, it must nest into
&lt;strong&gt;every&lt;/strong&gt; branch of the expression.&lt;/p&gt;
&lt;p&gt;The more complicated the tree above the &lt;code&gt;rotate&lt;/code&gt; call, the more times it
gets repeated.&lt;/p&gt;
&lt;p&gt;Let&#39;s dig into they source code to figure out why.&lt;/p&gt;
&lt;h2 id=&quot;generating-glsl&quot;&gt;Generating GLSL&lt;/h2&gt;
&lt;p&gt;The function &lt;code&gt;generateGlsl&lt;/code&gt; in &lt;code&gt;src/generate-glsl.js&lt;/code&gt; takes the hydra tree
structure and transforms it into the source string. Let&#39;s walk through how it works:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate-glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;29&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; transform function that outputs a shader string corresponding to gl_FragColor&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;32&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; var uniforms = []&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;33&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; var glslFunctions = []&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;34&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;  transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;forEach&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;35&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; TRUNCATED&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;37&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;38&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; fragColor&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;39&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;dl class=&quot;hl&quot;/&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;transforms&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;The tree structure that results from the hydra function chain.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;shaderParams&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;An object which stores extra context necessary to generate the shader like
uniforms.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;fragColor&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt; returns a function! This is an important detail.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;If we &lt;code&gt;console.log&lt;/code&gt; the &lt;code&gt;transform&lt;/code&gt; inside the loop, we can see that it has the
name of the function and a copy of the data we see in &lt;code&gt;glsl-functions.js&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;frequency&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;sync&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;glsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;...&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If we look at the body of &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt;s main loop, it has 3 main parts:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Pre-processing inputs&lt;/li&gt;
&lt;li&gt;Adding the transform to a list of functions to lazily generate its GLSL
function body&lt;/li&gt;
&lt;li&gt;Assembling the expression string for &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;gl_FragColor&lt;/code&gt;&lt;/a&gt; value&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If we skip to the 3rd part, we see that the generator branches on the transform
type and does some string template magic:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;44&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; current function for generating frag color shader code&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;45&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; fragColor&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;47&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;48&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;coord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;49&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;51&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;52&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;53&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for blend, mult, add funtions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;54&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;55&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;56&lt;/span&gt;&lt;span&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;57&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;58&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;59&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for modulate functions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;61&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;62&lt;/span&gt;&lt;span&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;63&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;The first line here saves off the previous loop iteration&#39;s version of
&lt;code&gt;fragColor&lt;/code&gt; as a new variable &lt;code&gt;f0&lt;/code&gt;. This allows for the generator to use
function composition to build up the structure of the shader expression.&lt;/p&gt;
&lt;p&gt;Let&#39;s look at each branch 1-by-1:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;47&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;48&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L72-L85&quot;&gt;&lt;code&gt;shaderString&lt;/code&gt;&lt;/a&gt; creates the actual &lt;code&gt;glsl&lt;/code&gt; function call; considering the &lt;code&gt;osc&lt;/code&gt;
example, this will generate the string &lt;code&gt;osc(st, 10, 0.1, 0)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If we look at the template string, we notice no reference to the &lt;code&gt;f0&lt;/code&gt; var, which
stores the previous iteration&#39;s &lt;code&gt;fragColor&lt;/code&gt; function; this makes sense, as &lt;code&gt;src&lt;/code&gt;
functions are always leaf nodes of the tree structure.&lt;/p&gt;
&lt;p&gt;An important detail to notice is that the first arg to &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L72-L85&quot;&gt;&lt;code&gt;shaderString&lt;/code&gt;&lt;/a&gt; (which
is also the first argument to the function call) is special: rather than coming
from the &lt;code&gt;inputs&lt;/code&gt;, &lt;code&gt;generateGlsl&lt;/code&gt; provides it directly. The number and type of
these special inputs comes from the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generator-factory.js#L74-L95&quot;&gt;&lt;code&gt;typeLookup&lt;/code&gt;&lt;/a&gt; we saw earlier which defines
some special input types.&lt;/p&gt;
&lt;p&gt;For &lt;code&gt;src&lt;/code&gt; functions, we expect a string containing the value of &lt;code&gt;_st&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2 _st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;fragColor&lt;/code&gt; is a function which takes the &lt;code&gt;uv&lt;/code&gt; as input; since &lt;code&gt;_st&lt;/code&gt; is the UV
coordinates, we pass the input &lt;code&gt;uv&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Transforming &lt;strong&gt;&lt;code&gt;color&lt;/code&gt;&lt;/strong&gt; type nodes of the tree is a little more difficult as
we must involve &lt;code&gt;f0&lt;/code&gt; in order to compose the &lt;code&gt;fragColor&lt;/code&gt; with higher nodes in
the tree:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;50&lt;/span&gt;&lt;span&gt;} &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;51&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;52&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We see that the &lt;code&gt;shaderString&lt;/code&gt; gets &lt;code&gt;f0&lt;/code&gt; the result of passed in as its
parameter; if we consult the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generator-factory.js#L74-L95&quot;&gt;&lt;code&gt;typeLookup&lt;/code&gt;&lt;/a&gt; again:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generator-factory.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;83&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;84&lt;/span&gt;&lt;span&gt;  returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;85&lt;/span&gt;&lt;span&gt;  args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4 _c0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;86&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We see that &lt;code&gt;color&lt;/code&gt; functions expect a single argument &lt;code&gt;_c0&lt;/code&gt; which represents
the color value of the hydra that results from all the nodes higher in the tree.
The generator accomplishes this by nesting &lt;code&gt;f0&lt;/code&gt; inside the first argument of the
&lt;code&gt;shaderString&lt;/code&gt; call.&lt;/p&gt;
&lt;p&gt;If we look at &lt;code&gt;coord&lt;/code&gt; functions next, we see something similar but different:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;46&lt;/span&gt;&lt;span&gt;} &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;coord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;47&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;48&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We see that &lt;code&gt;shaderString&lt;/code&gt; generates the function call to our &lt;code&gt;coord&lt;/code&gt; function
in the inside of the call to &lt;code&gt;f0&lt;/code&gt; to change the &lt;code&gt;uv&lt;/code&gt; seen by all previous
iterations.&lt;/p&gt;
&lt;p&gt;Next, let&#39;s consider the &lt;code&gt;combine&lt;/code&gt; function type:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;52&lt;/span&gt;&lt;span&gt;} &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;53&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for blend, mult, add funtions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;54&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;55&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;56&lt;/span&gt;&lt;span&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;57&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;58&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;If we look at the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generator-factory.js#L74-L95&quot;&gt;&lt;code&gt;typeLookup&lt;/code&gt;&lt;/a&gt; definition, the &lt;code&gt;input&lt;/code&gt; field actually defines 2
input variables:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generator-factory.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;87&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;88&lt;/span&gt;&lt;span&gt;  returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;89&lt;/span&gt;&lt;span&gt;  args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4 _c0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4 _c1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;90&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;So the &lt;code&gt;shaderString&lt;/code&gt; expects 2 different color variables in its special first
input; this makes sense, because &lt;code&gt;combine&lt;/code&gt; nodes represent branches in the
transform tree.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;_c0&lt;/code&gt; comes from the previous nodes in the &lt;code&gt;f0&lt;/code&gt; branch of the tree. To generate
the &lt;code&gt;_c1&lt;/code&gt; branch, &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt; calls itself recursively on &lt;code&gt;input[0]&lt;/code&gt; to
generate the &lt;code&gt;_c1&lt;/code&gt; branch, which it stores in the function &lt;code&gt;f1&lt;/code&gt;; it then passes
both expressions as a string through the first argument of &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L72-L85&quot;&gt;&lt;code&gt;shaderString&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Finally, if we look at &lt;code&gt;combineCoord&lt;/code&gt;, we see a similar pattern:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generator-factory.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;58&lt;/span&gt;&lt;span&gt;} &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;59&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for modulate functions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;61&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;62&lt;/span&gt;&lt;span&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;63&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Again looking at the &lt;code&gt;typeLookup&lt;/code&gt; data:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generator-factory.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;92&lt;/span&gt;&lt;span&gt;  returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;93&lt;/span&gt;&lt;span&gt;  args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2 _st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4 _c0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;94&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We see 2 arguments instead of 1 again: &lt;code&gt;_st&lt;/code&gt; expects the &lt;code&gt;uv&lt;/code&gt; coordinates, and
&lt;code&gt;_c0&lt;/code&gt; represents a branch in the tree.&lt;/p&gt;
&lt;p&gt;To generate the branch in the tree, again &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt; calls itself on
&lt;code&gt;input[0]&lt;/code&gt; which becomes the &lt;code&gt;f1&lt;/code&gt; generator, and we pass the result of &lt;code&gt;f1&lt;/code&gt; in
the &lt;code&gt;_c0&lt;/code&gt; argument position for the &lt;code&gt;combineCoord&lt;/code&gt; function. And then, just like
with &lt;code&gt;coord&lt;/code&gt; functions, we pass the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L72-L85&quot;&gt;&lt;code&gt;shaderString&lt;/code&gt;&lt;/a&gt; into the &lt;code&gt;uv&lt;/code&gt; for &lt;code&gt;f0&lt;/code&gt;, so
the effect propagates up the tree.&lt;/p&gt;
&lt;h2 id=&quot;observation-1-uv-propagation&quot;&gt;Observation 1: UV propagation&lt;/h2&gt;
&lt;p&gt;Now that we know how the generator works, let&#39;s walk through a more complicated
example:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mask&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;voronoi&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The generator sees the following tree structure and traverses in the numerical
order I have written, with &lt;code&gt;.&lt;/code&gt; representing recursive calls:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;1: osc()                     3.2.1: shape()-3.2.2: repeat()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; |                                    /&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;2: saturate()  3.1: src(o0)-3.2: mask(|) &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        \     /&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;     3: diff(/)   4.1: voronoi()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        /        /&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;4: modulateScale(|)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  |&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;out()&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It produces the following GLSL output (with numbers truncated):&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; diff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  saturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  )&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We see &lt;code&gt;modulateScale(st, voronoi(st))&lt;/code&gt; repeated in every branch of the tree
above node number 4. This could potentially have a performance impact if your
graphics driver cannot optimize the repeated calls.&lt;/p&gt;
&lt;p&gt;The more &lt;code&gt;coord&lt;/code&gt; or &lt;code&gt;combineCoord&lt;/code&gt; functions we stack later in the hydra, and
the more branches we introduce higher in the tree, the more repetitions we will
see!&lt;/p&gt;
&lt;p&gt;If we look back at &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt; we can make an interesting observation:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;52&lt;/span&gt;&lt;span&gt;} &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;53&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for blend, mult, add funtions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;54&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;55&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;56&lt;/span&gt;&lt;span&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;57&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;58&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;59&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for modulate functions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;61&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;62&lt;/span&gt;&lt;span&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;63&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;If we look at the &lt;code&gt;fragColor&lt;/code&gt; expressions specifically:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combine&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combineCoord&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The expression &lt;code&gt;${uv}&lt;/code&gt; shows up twice in each; this copy is exactly the source
of the duplicated function calls.&lt;/p&gt;
&lt;h2 id=&quot;observation-2-inputs-vs-outputs&quot;&gt;Observation 2: Inputs vs Outputs&lt;/h2&gt;
&lt;p&gt;Let&#39;s look inside &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L72-L85&quot;&gt;&lt;code&gt;shaderString&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/genreate-glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;73&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; assembles a shader string containing the arguments and the function name,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;74&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; i.e. &amp;#39;osc(uv, frequency)&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; method&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;76&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; str&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;77&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;78&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;      return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;79&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;      //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; this by definition needs to be a generator, hence we start with &amp;#39;st&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;81&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;      //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; as the initial value for generating the glsl fragment&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;82&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;      return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;83&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;84&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;85&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;reduce&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;86&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;method&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;87&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L72-L85&quot;&gt;&lt;code&gt;shaderString&lt;/code&gt;&lt;/a&gt; formats the actual function call, performing any necessary
special handling of the inputs: namely, it checks if the input is a uniform and
places the name of its uniform variable in the argument position.&lt;/p&gt;
&lt;p&gt;However, we also have a call to &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt;! If we compare to the structure
of previous calls to &lt;code&gt;generateGlsl&lt;/code&gt;, we see that in actually they are not all
that different; comparing to &lt;code&gt;combine&lt;/code&gt;:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;52&lt;/span&gt;&lt;span&gt;} &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;53&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for blend, mult, add funtions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;54&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;55&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;56&lt;/span&gt;&lt;span&gt;    (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;57&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;58&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;The branch we see here using the ternary (&lt;code&gt;? :&lt;/code&gt;) is effectively &lt;strong&gt;identical&lt;/strong&gt; to
how &lt;code&gt;shaderString&lt;/code&gt; already processes every input:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/genreate-glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;76&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;      return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;77&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;78&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;      //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; this by definition needs to be a generator, hence we start with &amp;#39;st&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;79&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;      //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; as the initial value for generating the glsl fragment&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;      return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;81&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;82&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt; uses the first argument of &lt;code&gt;shaderString&lt;/code&gt; to side-load the
inputs it has already processed, and takes care to &lt;code&gt;input.slice(n)&lt;/code&gt; to skip
the inputs it has already processed.&lt;/p&gt;
&lt;p&gt;The only real difference is that &lt;code&gt;generateGlsl&lt;/code&gt; propagates the &lt;code&gt;uv&lt;/code&gt; string,
where &lt;code&gt;shaderString&lt;/code&gt; starts with &lt;code&gt;&#39;st&#39;&lt;/code&gt;. If we change it to use &lt;code&gt;uv&lt;/code&gt;:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/genreate-glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;76&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;      return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;77&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;78&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;      return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;79&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;And in &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt;, if we allow &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L72-L85&quot;&gt;&lt;code&gt;shaderString&lt;/code&gt;&lt;/a&gt; to handle all input
variables:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;44&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; current function for generating frag color shader code&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;45&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; fragColor&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;47&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;48&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;coord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;49&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;51&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;52&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;53&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;54&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;55&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;56&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Several of the function categories actually collapse to the same structure:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;coord&lt;/code&gt; and &lt;code&gt;combineCoord&lt;/code&gt; are exactly the same&lt;/li&gt;
&lt;li&gt;&lt;code&gt;color&lt;/code&gt; and &lt;code&gt;combine&lt;/code&gt; are exactly the same&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The only real difference between these function types is the position of &lt;code&gt;f0&lt;/code&gt;,
or how they compose with the rest of the tree!&lt;/p&gt;
&lt;h2 id=&quot;observation-3-input-arguments&quot;&gt;Observation 3: Input Arguments&lt;/h2&gt;
&lt;p&gt;Comparing the &lt;code&gt;typeLookup&lt;/code&gt; map and the data in &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/main/src/glsl/glsl-functions.js&quot;&gt;&lt;code&gt;glsl-functions.js&lt;/code&gt;&lt;/a&gt;, we see an
interesting bit of &lt;em&gt;almost&lt;/em&gt; repeated structure:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/glsl/glsl-functions.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;78&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;79&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;noise&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;81&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;82&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;83&lt;/span&gt;&lt;span&gt;      type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;84&lt;/span&gt;&lt;span&gt;      name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;85&lt;/span&gt;&lt;span&gt;      default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;86&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;87&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;88&lt;/span&gt;&lt;span&gt;      type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;89&lt;/span&gt;&lt;span&gt;      name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;90&lt;/span&gt;&lt;span&gt;      default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;92&lt;/span&gt;&lt;span&gt;  ]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;93&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  glsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;94&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;   return vec4(vec3(_noise(vec3(_st*scale, offset*time))), 1.0);&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;95&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generator-factory.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;76&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;77&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2 _st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;78&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We see that the function def contains the type and the name as fields of an
object, but the type lookup keeps a string with the type and name together.&lt;/p&gt;
&lt;p&gt;In our updated &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt; function, we saw that our &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L72-L85&quot;&gt;&lt;code&gt;shaderString&lt;/code&gt;&lt;/a&gt;
function handles &lt;em&gt;all&lt;/em&gt; inputs the same way. However, if we peek into
[&lt;code&gt;src/generator-factory.js&lt;/code&gt;], in &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generator-factory.js#L135-L161&quot;&gt;&lt;code&gt;processGlsl&lt;/code&gt;&lt;/a&gt; we see that the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generator-factory.js#L74-L95&quot;&gt;&lt;code&gt;typeLookup&lt;/code&gt;&lt;/a&gt;
args and function def args each require special processing.&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generator-factory.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;135&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; processGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;136&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; t&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; typeLookup&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;137&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  if&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;t&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;138&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; baseArgs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; t&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; arg&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;join&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;139&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; @todo: make sure this works for all input types, add validation&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;140&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; customArgs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;join&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;141&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;baseArgs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;customArgs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; &amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; customArgs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;142&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  console.log(&amp;#39;args are &amp;#39;, args)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;143&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;144&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; glslFunction&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;145&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;146&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;t&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;147&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;glsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;148&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;149&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;150&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;151&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; add extra input to beginning for backward combatibility @todo update compiler so this is no longer necessary&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;152&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    if&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;unshift&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;153&lt;/span&gt;&lt;span&gt;        name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;154&lt;/span&gt;&lt;span&gt;        type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;155&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; Object&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;assign&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span&gt; glsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; glslFunction&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;156&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;157&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    console&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;warn&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;type &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; not recognized&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; obj&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;158&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;159&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;The first input always has special handling in &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt; because the
first argument is where the generator expresses nesting behavior; however we see
that transform types which have multiple default inputs require those inputs be
specially added in this branch:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generator-factory.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;152&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; add extra input to beginning for backward combatibility @todo update compiler so this is no longer necessary&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;153&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;if&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;unshift&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;154&lt;/span&gt;&lt;span&gt;    name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;155&lt;/span&gt;&lt;span&gt;    type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We can remove the need to do this by making the structure of input declarations
more uniform. If we change &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generator-factory.js#L74-L95&quot;&gt;&lt;code&gt;typeLookup&lt;/code&gt;&lt;/a&gt; to the following form:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generator-factory.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 74&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; typeLookup&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 76&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 77&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span&gt; type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; }&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 78&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 79&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;coord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 80&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 81&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span&gt; type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 82&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 83&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 84&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 85&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span&gt; type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_c0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 86&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 87&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 88&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 89&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 90&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      {&lt;/span&gt;&lt;span&gt; type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_c0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 91&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      {&lt;/span&gt;&lt;span&gt; type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_c1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 92&lt;/span&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 93&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 94&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 95&lt;/span&gt;&lt;span&gt;    returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 96&lt;/span&gt;&lt;span&gt;    args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 97&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      {&lt;/span&gt;&lt;span&gt; type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 98&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      {&lt;/span&gt;&lt;span&gt; type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_c0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 99&lt;/span&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;101&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Then we can just directly concatenate the input lists in &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt;,
removing a lot of special-case code:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generator-factory.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;141&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; processGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;142&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; t&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; typeLookup&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;143&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  if&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;t&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;144&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; t&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;concat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;145&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;join&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;146&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; console.log(&amp;#39;args are &amp;#39;, args)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;147&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;148&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; glslFunction&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;149&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;t&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;returnType&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;151&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;glsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;152&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;153&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;154&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; First input gets specially handled&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;155&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;156&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;157&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; Object&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;assign&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span&gt; glsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; glslFunction&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;158&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;159&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    console&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;warn&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;type &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; not recognized&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; obj&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; typeLookup&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;160&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;161&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;With these simplifications in hand, we can look for bigger improvements.&lt;/p&gt;
&lt;h2 id=&quot;problem-statement&quot;&gt;Problem Statement&lt;/h2&gt;
&lt;p&gt;When processing hydra transform trees like this one:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mask&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;voronoi&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Hydra produces GLSL with repeated function calls. These function calls can
sometimes be very expensive.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; diff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  saturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  )&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In practice, hydra practitioners will make far more complex patches than this
example, with many, many more repeated function calls in the resulting GLSL
shader. Although the graphics driver may optimize these, I believe it is better
we produce more optimal shader code to begin with.&lt;/p&gt;
&lt;p&gt;I hypothesize that we can use &lt;strong&gt;variable assignment&lt;/strong&gt; to do each calculation
once, and then re-use variables as many times as needed to propagate effects up
the tree.&lt;/p&gt;
&lt;p&gt;Furthermore, given the repeated structures we have observed above, not only
can hydra produce more optimal shader code, but also do so while adding almost
no complexity.&lt;/p&gt;
&lt;h2 id=&quot;manual-optimization&quot;&gt;Manual Optimization&lt;/h2&gt;
&lt;p&gt;Before I dive back into hydra&#39;s source code, I think it could be useful to
walk through transforming an example shader by hand to see what the variable
assignment form would look like. Taking the example from our problem statement:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; diff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  saturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  )&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We can first extract the repeated &lt;code&gt;modulateScale&lt;/code&gt; expression:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec2&lt;/span&gt;&lt;span&gt; st_modulate &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; diff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  saturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  )&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Immediately, we can read the repeated structure more easily. Let&#39;s take this
further by extracting the 2 arguments of &lt;code&gt;diff&lt;/code&gt; into variables.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec2&lt;/span&gt;&lt;span&gt; st_modulate &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_osc &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; saturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_mask &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; diff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If we repeat the same process for &lt;code&gt;mask&lt;/code&gt; and &lt;code&gt;modulateScale&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_voronoi &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec2&lt;/span&gt;&lt;span&gt; st_modulate &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_osc &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; saturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_src &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_shape &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_mask &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; diff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And now we have transformed the tree structure into something relatively flat.
We can take it even 1 step further though! We can remove the final nested
function calls by assigning to the same variable.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_voronoi &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec2&lt;/span&gt;&lt;span&gt; st_modulate &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_osc &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;c_osc &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; saturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_src &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;st_modulate &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;vec4&lt;/span&gt;&lt;span&gt; c_shape &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;c_shape &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;c_osc &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; diff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;gl_FragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span&gt; c_osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The advantage of structuring it this way is that every transform gets its own
line, and we can avoid creating too many uniquely named variables. The real
function calls will have a bunch of extra parameters, so this helps us more
clearly read the shader:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_voronoi &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_osc &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 40&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_osc &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; staturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_src &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_shape &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; mask&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_osc &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; diff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c_osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If we apply the same structure and principles to hydra&#39;s GLSL generator, we can
produce more optimal shader code.&lt;/p&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;Errata&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;I may have made errors in these manual optimizations. If anyone points them out,
I&#39;ll shout them out here and correct the examples.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;h2 id=&quot;changing-the-generator&quot;&gt;Changing the Generator&lt;/h2&gt;
&lt;p&gt;To recap, the generator takes a tree-shaped data structure and produces a
matching GLSL expression. However, this results in copying branches of the tree
because the hydra tree-structure and GLSL tree structure differ slightly.&lt;/p&gt;
&lt;p&gt;In order to prevent these copies, we will flatten the tree into a more linear
structure which uses variable assignment, still producing a logically identical
shader.&lt;/p&gt;
&lt;p&gt;Let&#39;s start with the part that gets duplicated the most: &lt;code&gt;coord&lt;/code&gt; functions.&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;coord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;If we think again about what &lt;code&gt;coord&lt;/code&gt;/&lt;code&gt;combineCoord&lt;/code&gt; and &lt;code&gt;src&lt;/code&gt;/&lt;code&gt;color&lt;/code&gt;/&lt;code&gt;combine&lt;/code&gt;
functions do &lt;em&gt;structurally&lt;/em&gt; and ignore the inputs, &lt;code&gt;coord&lt;/code&gt;/ &lt;code&gt;combineCoord&lt;/code&gt;
functions affect only the &lt;code&gt;vec2 uv&lt;/code&gt; and &lt;code&gt;src&lt;/code&gt;/&lt;code&gt;color&lt;/code&gt;/&lt;code&gt;combine&lt;/code&gt; affect only the
&lt;code&gt;vec4 color&lt;/code&gt;. We can think of these as 2 independent channels.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Only the relative ordering within each channel matters&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;In other words, the following hydras produce effectively the same shader code:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;render&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;colorama&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;colorama&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;colorama&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;colorama&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We can exploit this to order our assignment statements such that all &lt;code&gt;vec2 uv&lt;/code&gt;
&quot;channel&quot; functions appear first, then all &lt;code&gt;vec4 color&lt;/code&gt; appear last.&lt;/p&gt;
&lt;p&gt;Due to hydra&#39;s iteration order, this boils down to pushing all &lt;code&gt;coord&lt;/code&gt;/
&lt;code&gt;combineCoord&lt;/code&gt; transforms into the list of statements in &lt;strong&gt;stack&lt;/strong&gt; order, and
pushing all &lt;code&gt;src&lt;/code&gt;/&lt;code&gt;color&lt;/code&gt;/&lt;code&gt;combine&lt;/code&gt; transforms into the list of statements in
&lt;strong&gt;queue&lt;/strong&gt; order.&lt;/p&gt;
&lt;p&gt;However, if we look at one of the transform types which introduces branching,
we realize that the ordering of &lt;code&gt;coord&lt;/code&gt; and &lt;code&gt;combineCoord&lt;/code&gt; functions does
begin to matter:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;render&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;add&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; rotates shape&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;add&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; does not rotate shape&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If we only consider hydras with &lt;abbr title=&quot;no branching&quot;&gt;1 head&lt;/abbr&gt; for
the moment, we can modify the template string to assign the value directly to
the &lt;code&gt;uv&lt;/code&gt; we pass in, and then propagate that value into &lt;code&gt;f0&lt;/code&gt;; the generator will
then copy the variable name around rather than the whole expression:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;coord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;By placing the new &lt;code&gt;${uv} = ...&lt;/code&gt; expression &lt;em&gt;first&lt;/em&gt;, we ensure the stack-like
behavior of &lt;code&gt;vec2 uv&lt;/code&gt; channel functions.&lt;/p&gt;
&lt;p&gt;If we try to run this, we will run into an error; checking the generated GLSL,
we see the source of the error is in the main function:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This comes from the template string inside &lt;code&gt;glsl-source.js&lt;/code&gt;:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/glsl-source.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;101&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;  void main () {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;102&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    vec4 c = vec4(1, 0, 0, 1);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;103&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    vec2 st = gl_FragCoord.xy/resolution.xy;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;104&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    gl_FragColor = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;shaderInfo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;105&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;106&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;The code which produces the calling context for the actual hydra expects a
single expression. If we also change the &lt;code&gt;vec4 color&lt;/code&gt; transforms to assign
to a variable, we can change the template string to this:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/glsl-source.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;101&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;  void main () {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;102&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    vec4 c = vec4(1, 0, 0, 1);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;103&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    vec2 st = gl_FragCoord.xy/resolution.xy;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;104&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;shaderInfo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;105&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    gl_FragColor = c;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;106&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;107&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;To make things less error-prone, we should also pass the name of the color
variable to our functions. Within &lt;code&gt;generateGlsl&lt;/code&gt; this means updating the
recursive function we are building to have 2 inputs.&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;29&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; transform function that outputs a shader string corresponding to gl_FragColor&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;  var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;32&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; var uniforms = []&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;33&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; var glslFunctions = []&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;34&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;  transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;forEach&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;35&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; formatArguments&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uniforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;length&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;forEach&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;37&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;      if&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uniforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;push&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;input&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;38&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;39&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; add new glsl function to running list of functions&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;41&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    if&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;contains&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;glslFunctions&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;glslFunctions&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;push&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;42&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;43&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; current function for generating frag color shader code&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;44&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; fragColor&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;45&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;      fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;47&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;coord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;48&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;      fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;49&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;      ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;51&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;      fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;52&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;53&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;      //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for blend, mult, add funtions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;54&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;      var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;55&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;56&lt;/span&gt;&lt;span&gt;        (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;57&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;      fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;58&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;combineCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;59&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;      //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for modulate functions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;      var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;61&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;62&lt;/span&gt;&lt;span&gt;        (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;63&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;      fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;65&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;66&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;  return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; fragColor&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;67&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We also need to update the default function in &lt;code&gt;generate-glsl.js&lt;/code&gt;:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/generate-glsl.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;11&lt;/span&gt;&lt;span&gt;      uniforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; list of uniforms used in shader&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;12&lt;/span&gt;&lt;span&gt;      glslFunctions&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; list of functions used in shader&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;13&lt;/span&gt;&lt;span&gt;      fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;15&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; generateGlsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gen&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; remove uniforms with duplicate names&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;19&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; uniforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uniforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;forEach&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; uniforms&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; uniform&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uniforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; Object&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;values&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uniforms&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;22&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;If we run hydra with &lt;code&gt;npm run dev&lt;/code&gt;, it will open a minimal window where we
can play with hydra in the console.&lt;/p&gt;
&lt;p&gt;Typing:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Produces a red screen instead of the osc; if we inspect the shader by typing
the following fragment into the console we see:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;glsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;frag&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;    osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We see that &lt;code&gt;rotate&lt;/code&gt; assigns to &lt;code&gt;st&lt;/code&gt; as expected, but since the src &lt;code&gt;osc&lt;/code&gt;
function does not actually assign to the &lt;code&gt;c&lt;/code&gt; variable, we just keep the default
red from the top of the main function.&lt;/p&gt;
&lt;p&gt;Let us continue by updating the &lt;code&gt;src&lt;/code&gt; branch of the generator:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate-glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;47&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;And re-create our simple patch in the console, it will now output the
correct results:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now let us try using a &lt;code&gt;color&lt;/code&gt; function:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We get a new compiler error:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  hue&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We see now that need to update the &lt;code&gt;color&lt;/code&gt; branch in &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth/blob/4493cebe960e0f7283afe37b9f19d700aa6df0bb/src/generate-glsl.js#L29-L70&quot;&gt;&lt;code&gt;generateGlsl&lt;/code&gt;&lt;/a&gt;; since
&lt;code&gt;color&lt;/code&gt; functions need to update the exiting color variable, we need to generate
the rest of the shader statements before the new color assignment:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate-glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;53&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;54&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;55&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Now things should work as expected with no GLSL compile errors.&lt;/p&gt;
&lt;p&gt;With the 3 most simple function types out of the way, let&#39;s try one that
introduces branching in the transform tree: &lt;code&gt;combine&lt;/code&gt; functions. In principle,
the combine functions should look very similar to the &lt;code&gt;color&lt;/code&gt; functions since
they ultimately change the color of the shader. If we look at the combine
branch again, however:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate-glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;57&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for blend, mult, add funtions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;58&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;59&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;60&lt;/span&gt;&lt;span&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;61&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We see that recursive call to &lt;code&gt;generateGlsl&lt;/code&gt;. If we first apply the same
transformation we did for the &lt;code&gt;color&lt;/code&gt; function (mind the semicolon):&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate-glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;57&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; combining two generated shader strings (i.e. for blend, mult, add funtions)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;58&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;59&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;generateGlsl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;60&lt;/span&gt;&lt;span&gt;  (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;isUniform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;61&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;62&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;63&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;And then try the example:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Instead of seeing a &lt;code&gt;shape&lt;/code&gt; superimposed on top of the &lt;code&gt;osc&lt;/code&gt;, we see only the
&lt;code&gt;shape&lt;/code&gt;; intuitively, this makes sense since we have used &lt;code&gt;${c}&lt;/code&gt; as both input
arguments to the &lt;code&gt;shaderString&lt;/code&gt; and both branches of the generator; if we check
the source of the main function now:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; discards osc&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We see that the shader overwrite the &lt;code&gt;osc&lt;/code&gt; output. We need to introduce a &lt;em&gt;new&lt;/em&gt;
variable to store the intermediate results of the &lt;code&gt;shape().luma()&lt;/code&gt; chain to
pass into the &lt;code&gt;layer&lt;/code&gt; function.&lt;/p&gt;
&lt;p&gt;I messed around with a lot of schemes for naming variables, and I found the
one that holds up is to use the iteration order like in the diagrams above:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;       shape 1.0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;       |&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;osc 0  luma 1.1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;   \  /&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;   layer 1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;     |&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    out 2&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each &lt;code&gt;.&lt;/code&gt; represents a recursive call to &lt;code&gt;generateGlsl&lt;/code&gt;, and our linearized
iteration order looks like this:&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;node&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;number&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;osc&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;layer&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;shape&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;1.0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;luma&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;1.1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;out&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Since we visit each node exactly once, if we use the iteration to derive
the name for each variable, then it will always be unique.&lt;/p&gt;
&lt;p&gt;Let&#39;s try appending the iteration &lt;code&gt;_${i}&lt;/code&gt; to create a new variable:&lt;/p&gt;
&lt;p&gt;At the top of the loop, we can add an argument for the index:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate_glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transforms&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;forEach&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; truncated&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Then we can use it in the updated &lt;code&gt;combine&lt;/code&gt; branch:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate_glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;61&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;62&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;63&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;You might remember, however, that in our &lt;code&gt;src&lt;/code&gt; branch we are just assigning to
an existing variable; since &lt;code&gt;${c}_${i}&lt;/code&gt; doesn&#39;t exist yet, we are likely to
get a syntax error, so we need to update the &lt;code&gt;src&lt;/code&gt; branch:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate_glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;47&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec4 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;And the template &lt;code&gt;main&lt;/code&gt; function (removing the definition of &lt;code&gt;c&lt;/code&gt;):&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;`src/glsl-source.js`&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; `&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;101&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;  void main () {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;102&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    vec2 st = gl_FragCoord.xy/resolution.xy;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;103&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;shaderInfo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;104&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    gl_FragColor = c;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;105&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;106&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Now we can run our example again:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And observe things working as expected:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Let&#39;s consider a more complex example:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;kaleid&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We would expect &lt;code&gt;kaleid&lt;/code&gt; to only affect the layered &lt;code&gt;osc&lt;/code&gt;, but it
also affects the &lt;code&gt;shape&lt;/code&gt;!&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; observable by `shape`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We &lt;em&gt;also&lt;/em&gt; need to scope the &lt;code&gt;uv&lt;/code&gt; variable!&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate_glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;63&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;65&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;66&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;67&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Note that we cache the UV before running &lt;code&gt;f1&lt;/code&gt; and &lt;code&gt;f0&lt;/code&gt; to keep things properly
scoped. Now we get the expected result:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span&gt;  st_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; properly scoped&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We can now confirm that we have the same behavior as before, but without repeated
&lt;code&gt;rotate&lt;/code&gt; calls appearing at both &lt;code&gt;osc&lt;/code&gt; calls and in the &lt;code&gt;shape&lt;/code&gt; call. It all gets
handled in:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We have one last function type to handle before we are done, &lt;code&gt;combineCoord&lt;/code&gt; which
combines all observations thus far:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/generate_glsl.js&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;71&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fragColor&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;72&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;vec2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;73&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;74&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shaderString&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; inputs&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; shaderParams&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   ${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;f0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;uv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;And if we now try the following patch:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;kaleid&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateRotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;voronoi&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We can move &lt;code&gt;modulateRotate&lt;/code&gt; up and down and see it progressively affect more
layers; and the version with &lt;code&gt;modulateRotate&lt;/code&gt; after the last &lt;code&gt;layer&lt;/code&gt; function
will only appear once in the shader&#39;s main function:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; rotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_3 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span&gt;  vec4 c_3 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot; style=&quot;background-color: light-dark(#EBDBB260, #3C383660);&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulateRotate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_2 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_1 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; osc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Mission accomplished! There is more cleanup and work one could do. We haven&#39;t
investigated the &lt;code&gt;shaderString&lt;/code&gt; function that much, and notice that it has a
call to &lt;code&gt;generateGlsl&lt;/code&gt; inside! That will be broken.&lt;/p&gt;
&lt;p&gt;However, I think this is a good place to stop before we go too crazy.&lt;/p&gt;
&lt;h2 id=&quot;a-last-example&quot;&gt;A last example&lt;/h2&gt;
&lt;p&gt;For fun, let us compare the before and after on this patch:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;sub&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;voronoi&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;       .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;noise&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;  	voronoi&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;add&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;kaleid&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;smooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It is fairly representative of something I might arrive at during a performance,
perhaps even quite a bit simpler.&lt;/p&gt;
&lt;details&gt;
&lt;summary&gt;
  &lt;h3&gt;Nested Expression Style&lt;/h3&gt;
  &lt;p&gt;A massive wall of text, with deeply nested repeated expressions.&lt;/p&gt;
&lt;/summary&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; vec4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; saturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;sub&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;        color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;            shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                    modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                        scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                            modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                            scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                    modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                                                        st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                        src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                                    amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                            scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                    kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                        4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                                        amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                        src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                            scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                            scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                    kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                        4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                                        amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                            modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                            shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                    scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                        kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                            modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                            4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                                            amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                            tex2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                        2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;        color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;            voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                    scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                        modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                            modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                            kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                                amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                            voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                            scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                    modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                                    amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                    src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                        scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                            modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                            scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                    modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                                    amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                            scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                    kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                                        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                        4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                                        amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                        tex2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;        1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;        noise&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;            modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                    modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                    shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                        scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                            scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                        4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                    amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                    modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                        shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                            scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                    kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                                        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                        4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                        amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            1000&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;        0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;        shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;            scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                    kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;                        modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                        4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                    0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;                )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;            )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;            0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/details&gt;
&lt;details&gt;
  &lt;summary&gt;
  &lt;h3&gt;Assignment Style&lt;/h3&gt;
  &lt;p&gt;
    No crazy nested repeated function calls, &lt;em&gt;relatively&lt;/em&gt; easy to read.
  &lt;/p&gt;
  &lt;/summary&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;glsl&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl_FragCoord&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;resolution&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;xy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_12 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_12 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_12&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulateScrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_12&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_10 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st_10 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; kaleid&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st_10 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st_10 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; scale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_10 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; amount0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_9 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_9 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_8 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_8 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulateScale&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_7 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_7 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; noise&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_7&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_7 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; luma&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_7&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; scrollX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_5 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_5 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; tex3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; modulate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec2 st_3 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c_3 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; voronoi&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st_3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c_3 &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c_3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  st &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; repeat&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  vec4 c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; shape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;st&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; sub&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; hue&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; layer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_7&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; add&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; c_9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  c &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; saturate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  gl_FragColor &lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;=&lt;/span&gt;&lt;span&gt; c&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/details&gt;
&lt;h2 id=&quot;afterword&quot;&gt;Afterword&lt;/h2&gt;
&lt;p&gt;I started this post in February 2025 and sat on it, in a nearly finished state,
for a very long time. The thought of an LLM scraper ingesting this page really
bothered me, to the point of feeling quite depressed. I write for real people
with real curiosity and passion, and when you read my site, I hope the passion
and care I put into it comes through.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;h2 id=&quot;license-acknowledgments&quot;&gt;License &amp;amp; Acknowledgments&lt;/h2&gt;
&lt;p&gt;You can find hydra&#39;s source code online at &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/&quot;&gt;&lt;code&gt;hydra-synth&lt;/code&gt;&lt;/a&gt;. The source code
is licensed under the &lt;code&gt;GNU AFFERO GENERAL PUBLIC LICENSE&lt;/code&gt; version 3, as is the
source code for this blog.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>zig-error-patterns</title>
        <published>2025-08-05T00:00:00+00:00</published>
        <updated>2025-08-05T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/zig-error-patterns/"/>
        <id>https://glfmn.io/posts/zig-error-patterns/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/zig-error-patterns/">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Although I try to make good use of the debugger, I am quite used to print-based
debugging, especially for unit tests. I wanted to explore some tricks to improve
print-based debugging, and also incorporate the debugger more.&lt;/p&gt;
&lt;h2 id=&quot;print-based-debugging-improved&quot;&gt;print-based debugging improved&lt;/h2&gt;
&lt;p&gt;One big problem with using print debugging is spammy output. If I am
running something in a loop, and only one iteration of the loop has anything
interesting, I still need to filter and sort through every iteration&#39;s output.&lt;/p&gt;
&lt;p&gt;Or perhaps I am working with some data structure that has a printable
representation that is easier to parse than the raw data; if I don&#39;t know where
the error comes from I would have to litter print functions everywhere hoping to
catch the necessary context.&lt;/p&gt;
&lt;p&gt;However, I realized that since zig tests use &lt;code&gt;error&lt;/code&gt;s, instead of panics, it is
possible to use &lt;code&gt;errdefer&lt;/code&gt; to print something only when a test actually fails.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;test&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    errdefer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; std&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;debug&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;{f}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; .&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;ast&lt;/span&gt;&lt;span&gt;})&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; ...&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Does a fantastic job of avoiding cluttering the code, and providing the precise
context necessary when an error actually occurs.&lt;/p&gt;
&lt;h2 id=&quot;running-tests-in-the-debugger&quot;&gt;Running tests in the debugger&lt;/h2&gt;
&lt;p&gt;If anything more complex is necessary, using the debugger is the way to go.
However, naively trying to run &lt;code&gt;seergdb&lt;/code&gt; or &lt;code&gt;gdb -tui&lt;/code&gt; directly from the
terminal gets difficult, as the test binaries are not in &lt;code&gt;zig-out&lt;/code&gt; directory
(understandably) but in the &lt;code&gt;zig-cache&lt;/code&gt; directory.&lt;/p&gt;
&lt;p&gt;I learned a trick from &lt;a rel=&quot;external&quot; href=&quot;https://ziggit.dev/t/zig-debugging-with-lldb/3931/7?u=glfmn&quot;&gt;ziggit&lt;/a&gt; that the &lt;code&gt;build.zig&lt;/code&gt; can run
commands, and you can feed the artifact path of a build step as an argument into
the command:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;build.zig&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; seergdb is a gdb gui frontend&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addSystemCommand&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span&gt;{ &lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;seergdb&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;--run&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;--&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; })&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addArtifactArg&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;exe_unit_tests&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; debug_step&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;step&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;debug&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Run unit tests under debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;debug_step&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dependOn&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;step&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;This makes it really easy to run the proper binary; however, this isn&#39;t enough
on its own: the debugger only kicks into action for a breakpoint or panic, but
the test runner gracefully handles errors.&lt;/p&gt;
&lt;p&gt;We can get around this by adding &lt;code&gt;@breakpoint&lt;/code&gt; calls, but then we are
potentially back to square one, where we have to speculatively add breakpoints
and catch the precise moment where things fail, or have to manually step through
until failure.&lt;/p&gt;
&lt;h2 id=&quot;combining-tricks&quot;&gt;Combining tricks&lt;/h2&gt;
&lt;p&gt;Of course, a good solution is to use:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;test&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    errdefer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; @breakpoint&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will break the program at the precise moment we hit an error. There&#39;s a
chance enough context is still around to snoop at with the debugger, and we
would also have the debug printing that the &lt;code&gt;std.testing.expect{.*}&lt;/code&gt; functions
provide.&lt;/p&gt;
&lt;p&gt;However, this does have downsides. Consider the program:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;errdefer @breakpoint()&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    errdefer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; @breakpoint&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; error&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;FixMe&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;normal test&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; error&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;FixMe&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If we run &lt;code&gt;zig build test&lt;/code&gt;, instead of reporting individual test errors, the
summary will just report that the entire test &lt;em&gt;step&lt;/em&gt; failed:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;error: while executing test &amp;#39;main.test.@&amp;quot;errdefer @breakpoint()&amp;quot;&amp;#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;the following command terminated with signal 5 (expected exited with code 0):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ./.zig-cache/o/348ca1907303b41ca8e0fceafd43ad63/test \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    --cache-dir=./.zig-cache \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    --seed=0xe3f1cf05 --listen=-&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If we still want to preserve the normal behavior except when we actually &lt;em&gt;want&lt;/em&gt;
to break for a debugger, then we need one more trick.&lt;/p&gt;
&lt;h2 id=&quot;conditional-compilation&quot;&gt;Conditional compilation&lt;/h2&gt;
&lt;p&gt;The Zig build system allows us use
&lt;a rel=&quot;external&quot; href=&quot;https://ziglang.org/learn/build-system/#conditional-compilation&quot;&gt;build options to pass compile time values&lt;/a&gt; to our program. We
can leverage these to pass a &lt;code&gt;bool&lt;/code&gt; to decide when to call &lt;code&gt;@breakpoint&lt;/code&gt; in
our tests.&lt;/p&gt;
&lt;p&gt;Starting from a simple build script that only runs tests:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;build.zig&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; std&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; @import&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;std&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;pub&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; fn&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; build&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; *&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;std&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;Build&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;void&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; target&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;standardTargetOptions&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span&gt;{})&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; optimize&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;standardOptimizeOption&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span&gt;{})&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 6&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 7&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; lib&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addModule&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;zig-test-patterns&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; .&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;root_source_file&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;path&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;src/root.zig&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;target&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; target&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;optimize&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; optimize&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;11&lt;/span&gt;&lt;span&gt;    })&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;12&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; mod_tests&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addTest&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;root_module&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; lib&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;15&lt;/span&gt;&lt;span&gt;    })&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;16&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; run_mod_tests&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addRunArtifact&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;mod_tests&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;18&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;19&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; test_step&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;step&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Run tests&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    test_step&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dependOn&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;run_mod_tests&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;step&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;21&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We can add the compile time option like so:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;build.zig&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; options&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addOptions&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;options&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addOption&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;bool&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; false&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;We need to add the generated options module to our lib:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;build.zig&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;lib&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addImport&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;config&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; options&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;createModule&lt;/span&gt;&lt;span&gt;())&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Then, in our &lt;code&gt;root.zig&lt;/code&gt; file we can reference the options like so:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;root.zig&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; std&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; @import&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;std&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; config&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; @import&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;config&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 3&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;errdefer @breakpoint()&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    errdefer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;config&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;debugger&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;@breakpoint&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 6&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 7&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; error&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;FixMe&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 8&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 9&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;no breakpoint&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; error&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;FixMe&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;12&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Now, we can run the test and get no breakpoint:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;zig build test&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However, we run into a snag: this value is observable to our program, but
we have to recompile the &lt;code&gt;build.zig&lt;/code&gt; in order to change the value. We need
to add the option to the build system itself:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;build.zig&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; options&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addOptions&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; use_debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;option&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 6&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    bool&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 7&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Enables code intended to only run under a debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 9&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;orelse&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt; false&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;options&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addOption&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;bool&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; use_debugger&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Now we can run:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;zig build -Ddebugger test&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And observe the change in behavior.&lt;/p&gt;
&lt;p&gt;As a final step, we can hook up the command to run our debugger when
the &lt;code&gt;use_debugger&lt;/code&gt; flag is set like so:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;build.zig&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;29&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; test_step&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;step&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Run tests&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;use_debugger&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addSystemCommand&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span&gt;{ &lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;seergdb&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;--run&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;--&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; })&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;32&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addArtifactArg&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;mod_tests&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;33&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;34&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    test_step&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dependOn&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;debugger&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;step&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;35&lt;/span&gt;&lt;span&gt;} &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;else&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    test_step&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dependOn&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;run_mod_tests&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;step&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;37&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Now, if we run with the &lt;code&gt;-Ddebugger&lt;/code&gt; flag, the test runner will automatically
run in the debugger, and will break on error! See a screenshot &lt;a href=&quot;https://glfmn.io/posts/zig-error-patterns/./seergdb.png&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It might be nice to encapsulate the config option checking in a function:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;fn&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; breakForDebugger&lt;/span&gt;&lt;span&gt;() &lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;void&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;    if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;config&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;debugger&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;@breakpoint&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But I leave that up to your judgment.&lt;/p&gt;
&lt;h2 id=&quot;zig-version&quot;&gt;Zig Version&lt;/h2&gt;
&lt;p&gt;This guide was written with Zig version:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;0.15.0-dev.1184+c41ac8f19&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also, special thanks to &lt;a rel=&quot;external&quot; href=&quot;https://ziggit.dev/u/alanza/&quot;&gt;Alanza&lt;/a&gt; for reading an early draft of this article.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>dance-or-dont</title>
        <published>2025-03-15T00:00:00+00:00</published>
        <updated>2025-03-15T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/dance-or-dont-25-03-12/"/>
        <id>https://glfmn.io/posts/dance-or-dont-25-03-12/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/dance-or-dont-25-03-12/">&lt;h2 id=&quot;description&quot;&gt;Description&lt;/h2&gt;
&lt;p&gt;I performed with &lt;a rel=&quot;external&quot; href=&quot;https://hydra.ojack.xyz&quot;&gt;&lt;code&gt;hydra&lt;/code&gt;&lt;/a&gt; for the first time at Dance or Don&#39;t; it was a blast!&lt;/p&gt;
&lt;h2 id=&quot;hydra-prep&quot;&gt;hydra prep&lt;/h2&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://hydra.ojack.xyz&quot;&gt;&lt;code&gt;hydra&lt;/code&gt;&lt;/a&gt; is a JavaScript live-coding framework which intuitively builds GLSL
shaders from expressions which look like this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I have been practicing making stuff with hydra for a few months now. I&#39;ve learned
a bunch about how it works, and I&#39;ve still only scratched the surface!&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://hydra.ojack.xyz&quot;&gt;&lt;code&gt;hydra&lt;/code&gt;&lt;/a&gt; provides an extension method to add custom
&lt;abbr title=&quot;GL Shader Language&quot;&gt;GLSL&lt;/abbr&gt; via &lt;a rel=&quot;external&quot; href=&quot;https://github.com/hydra-synth/hydra-synth&quot;&gt;&lt;code&gt;setFunction&lt;/code&gt;&lt;/a&gt;, which I used to
both add custom functions and alter how some of the built-in functions work.  In
particular, I changed how a few of the functions work to have better support for
alpha blending, which I used to build layers in my
&lt;abbr title=&quot;sketches&quot;&gt;patches&lt;/abbr&gt;.&lt;/p&gt;
&lt;p&gt;I have uploaded my little hydra extension to this site, you can include it in
&lt;a rel=&quot;external&quot; href=&quot;https://hydra.ojack.xyz&quot;&gt;&lt;code&gt;hydra&lt;/code&gt;&lt;/a&gt; and play around like so:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/code/hydra-ludens.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;warning&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;I provide no guarantees of stability! Use at your own risk.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;p&gt;I changed &lt;code&gt;shape&lt;/code&gt; to have alpha of 0 outside the shape for easier use with
&lt;code&gt;layer&lt;/code&gt;. I also wanted some more interesting sources to work with, so I made:&lt;/p&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;dist&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;Simply outputs the distance from &lt;code&gt;[0.5,0.5]&lt;/code&gt; in the UV space; provides a nice
and simple way to create interesting shapes and modulation. &lt;br/&gt;&lt;br/&gt;I used
it in basically every patch I made during my performance to create interesting
elements, especially combining multiple &lt;code&gt;scroll&lt;/code&gt;ed and rotated copies with &lt;code&gt;add&lt;/code&gt;
or &lt;code&gt;mult&lt;/code&gt;.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;fract&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;A wrapper around glsl&#39;s &lt;code&gt;fract&lt;/code&gt; function, useful to create crunchy-glitchyness.
Essentially just multiplies the input and then passes it to &lt;code&gt;fract&lt;/code&gt; to get the
fractional component.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;manhattan&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;A modified version of &lt;a rel=&quot;external&quot; href=&quot;https://hydra.ojack.xyz&quot;&gt;&lt;code&gt;hydra&lt;/code&gt;&lt;/a&gt;&#39;s &lt;code&gt;voronoi&lt;/code&gt; which instead uses the Manhattan
distance function: &lt;code&gt;dist.x + dist.y&lt;/code&gt;. All lines between cells align with 45
degree angles. I didn&#39;t use this one much, but it does look cool!&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;I wanted a more interesting modulation source, so I made:&lt;/p&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;bugeye&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;Rather than assigning a color to each voronoi cell, this function modulates the
UV coordinates to be relative to the center of each voronoi cell. Like the name,
it makes the patch look like little reflections of itself in the eyes of a bug.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;I had a couple of functions which I couldn&#39;t make work in time:&lt;/p&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;smoothCell&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;Yet another voronoi-derived function which uses a smooth minimum function to
color each pixel, which results in metaball-esque visuals. I couldn&#39;t figure
out getting smoothness, the curvature of the distance function, and size of the
individual cells working nicely together.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;withHue&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;Uses the average &lt;code&gt;rbg&lt;/code&gt; pixel value of one image to shift the hue of another
image. I had it working as a &lt;code&gt;color&lt;/code&gt; function with a &lt;code&gt;vec4&lt;/code&gt; input, but current
hydra doesn&#39;t properly propagate UV changes to &lt;code&gt;vec4&lt;/code&gt; inputs, even if they are
a generator.&lt;br/&gt;&lt;br/&gt;I was working on changing this to be a &lt;code&gt;combine&lt;/code&gt; function
right before showtime, but I had a GLSL compile error so I opted to cut it from
the performance.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;I also added a little &lt;code&gt;lerp&lt;/code&gt; function to help with audio-reactivity.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://glfmn.io/posts/dance-or-dont-25-03-12/./night-before.png&quot;&gt;Here&lt;/a&gt; is a patch I came up with the night before in my practice
session:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/code/hydra-ludens.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setCutoff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setBins&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setSmooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;		.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;		.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateRotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;		.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;		.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bugeye&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;05&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;02&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;smooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;thresh&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;99&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;	.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;the-lineup&quot;&gt;The Lineup&lt;/h2&gt;
&lt;p&gt;The event was called &lt;em&gt;dance or don&#39;t&lt;/em&gt;, organized by &lt;code&gt;so_so_gutter&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&quot;djs-audio&quot;&gt;DJs/audio&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
  &lt;ol&gt;
&lt;li&gt;so_so_gutter&lt;/li&gt;
&lt;li&gt;olyX3&lt;/li&gt;
&lt;li&gt;ToPher DJ&lt;/li&gt;
&lt;li&gt;yulia&lt;/li&gt;
&lt;li&gt;Dr. Cr0de&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;h3 id=&quot;visuals&quot;&gt;Visuals&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
  &lt;ol&gt;
&lt;li&gt;cursorhead&lt;/li&gt;
&lt;li&gt;elle&lt;/li&gt;
&lt;li&gt;me :)&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/dl&gt;
&lt;p&gt;Due to the odd ratio of visual performers, we decided to each take 15 minute
blocks of the DJ sets. soso&#39;s performance was 30 minutes and ended up being
mostly warm-up and extra setup time.&lt;/p&gt;
&lt;h2 id=&quot;setup&quot;&gt;Setup&lt;/h2&gt;
&lt;p&gt;&lt;abbr title=&quot;the organizer&quot;&gt;soso&lt;/abbr&gt; provided a little 5-to-1 HDMI switcher
which proved &lt;strong&gt;instrumental&lt;/strong&gt;. The venue&#39;s mixer also had an aux send, which
using their adapter cables, I was able to plug into my audio interface to get
some reliable audio reactivity.&lt;/p&gt;
&lt;p&gt;We taped down the audio interface and HDMI switcher; the projector was tilted,
and the keystone had the image centered, so I used inspect element to add
&lt;code&gt;100px&lt;/code&gt; padding to the element which contained the code to keep it visible on
the projector screen.&lt;/p&gt;
&lt;p&gt;I used a rust &lt;a rel=&quot;external&quot; href=&quot;https://github.com/richardanaya/http-server&quot;&gt;&lt;code&gt;http-server&lt;/code&gt;&lt;/a&gt;
library to serve a local version of my &lt;a rel=&quot;external&quot; href=&quot;https://glfmn.io/code/hydra-ludens.js&quot;&gt;&lt;code&gt;hydra-ludens.js&lt;/code&gt;&lt;/a&gt; script so I wouldn&#39;t
need an Internet connection.&lt;/p&gt;
&lt;p&gt;I also wanted to run a local version of hydra, but I ran into some hitches
with that since I wanted to run with some patches that aren&#39;t available on
the official version hosted on the net, and the &lt;code&gt;hydra&lt;/code&gt; repo uses that version
instead of the version in its node_modules. However, I was able to tether
internet so it wasn&#39;t necessary in the end.&lt;/p&gt;
&lt;p&gt;I tried out &lt;a rel=&quot;external&quot; href=&quot;https://github.com/geikha/hyper-hydra&quot;&gt;&lt;code&gt;hydra-tap&lt;/code&gt;&lt;/a&gt; last minute for
getting tap tempo control over hydra&#39;s &lt;code&gt;[]&lt;/code&gt; syntax. However, I was experimenting
with the dev branch, and the &lt;code&gt;C-space&lt;/code&gt; key combination interacted badly with
the updated code mirror editor. I ended up having to delay my first performance
to switch to the main branch because hydra (more likely code mirror) broke
completely. It felt like the internal time variable broke, I suspect it had a
&lt;code&gt;NaN&lt;/code&gt; on the JavaScript side or something of the sort.&lt;/p&gt;
&lt;h2 id=&quot;set-1-ollyx3&quot;&gt;Set 1: ollyX3&lt;/h2&gt;
&lt;p&gt;Due to how we were laid out on the table, I was going to go second, but I ran
into the aforementioned bug, so elle went before me instead. Since the time we
would each be on was so short, I improvised each patch during the 15-20 minutes
before my slot during each set.&lt;/p&gt;
&lt;p&gt;I was pretty nervous during the first set, so I kept things simple. I don&#39;t
remember having much of a concept in mind, except that I wanted to build
visual interest with movement across a few different scales: color, distortion,
and small shapes.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://glfmn.io/posts/dance-or-dont-25-03-12/./set-1.png&quot;&gt;Here&#39;s&lt;/a&gt; a snippet of my patch:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/code/hydra-ludens.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://hyper-hydra.glitch.me/hydra-tap.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setCutoff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setBins&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setSmooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;blend&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  	.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;	.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;           .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shift&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;           .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bugeye&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;           .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;repeat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;           .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;           .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;           .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  	.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;render&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This set was a blur for sure, and I don&#39;t remember making a lot of big changes
to this patch as my 15 minutes came and went.&lt;/p&gt;
&lt;p&gt;Special shout out to ollyX3 who was also performing for the first time, and who
did a wonderful job!&lt;/p&gt;
&lt;h2 id=&quot;set-2-topher-dj&quot;&gt;Set 2: ToPher DJ&lt;/h2&gt;
&lt;p&gt;This time for ToPher DJ&#39;s set I wanted to play more with visual feedback. Since
it was easier for me to work with alpha now, I used a bit of scrolling and
rotation on the feedback &lt;code&gt;src&lt;/code&gt; to leave cool trails behind.&lt;/p&gt;
&lt;p&gt;I also tried out a trick that elle has been using to create pseudo-3d in
hydra to create a bit of a looking-down perspective, which created a sense of
perspective like looking down on a pit of sand.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://glfmn.io/posts/dance-or-dont-25-03-12/./set-2.png&quot;&gt;Here&#39;s&lt;/a&gt; a rough snapshot of what it looked like at the end:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/code/hydra-ludens.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://hyper-hydra.glitch.me/hydra-tap.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setCutoff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setBins&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setSmooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;add&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;kaleid&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;blend&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateRotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bugeye&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bugeye&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;7&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mask&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 12&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;125&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;thresh&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;       .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;001&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bugeye&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;25&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;render&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Being so audio reactive, this one felt like the music was pushing sand
around. I had a lot of fun starting to comment out some of the bits. A moment
I was particularly happy with was when I realized I could stack a bunch of
&lt;code&gt;modulate(dist())&lt;/code&gt; to push the shape of the &lt;code&gt;dist().fract()&lt;/code&gt; mask around, like
this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; lerp&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scroll&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 12&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;125&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;thresh&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Commenting out the entire &lt;code&gt;mask&lt;/code&gt; chunk created a completely different vibe,
which was fun to toggle when a drop would come.&lt;/p&gt;
&lt;h2 id=&quot;set-3-yulia&quot;&gt;Set 3: yulia&lt;/h2&gt;
&lt;p&gt;This time I wanted to have the focus be on the center of the screen and maybe
create a sense of being drawn in. I had watched more of cursorhead and elle&#39;s
performances in the break time and I had lots more ideas about how I could
change up the performance in interesting ways.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://glfmn.io/posts/dance-or-dont-25-03-12/./set-3.png&quot;&gt;Here&#39;s&lt;/a&gt; a snippet of my patch for yulia&#39;s set:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/code/hydra-ludens.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://hyper-hydra.glitch.me/hydra-tap.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setCutoff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setBins&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setSmooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;voronoi&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;smooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;25&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mask&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;7&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;thresh&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;         .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mult&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;               .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;               .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shift&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;99&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;         .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;         .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mask&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;7&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I used masks to cut out bits of the various layers to create a defined center,
and tried to get the colors of the various layers to match up in interesting
ways.&lt;/p&gt;
&lt;p&gt;I had a bit more fun messing with tap tempo to perform the patch.&lt;/p&gt;
&lt;p&gt;My favorite moment of yulia&#39;s performance was this track which had an insane
arp, which made my head feel like it was spinning. I was mesmerized!&lt;/p&gt;
&lt;h2 id=&quot;set-4-dr-cr0de&quot;&gt;Set 4: Dr. Cr0de&lt;/h2&gt;
&lt;p&gt;For Dr. Cr0de&#39;s set I was trying to get more of a sense of flashing between
different scenes. Dr. Cr0de&#39;s set was a bit more unpredictable for me than the
other performances, so it was a challenge to try to find ways to keep up! I
leaned into the audio reactivity more in some parts of the performance, but
it just so happened I could create a really different vibe by controlling
the tap tempo:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://glfmn.io/posts/dance-or-dont-25-03-12/./set-4.png&quot;&gt;Here&#39;s&lt;/a&gt; a snippet of my patch:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; My name is gwen but you can call me ludens&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; This is hydra, a live coding javascript library for making GLSL shaders&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/code/hydra-ludens.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; loadScript&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://hyper-hydra.glitch.me/hydra-tap.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setCutoff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setBins&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setSmooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hush&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mult&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;            .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;smooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;add&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;luma&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;   .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;31&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;scale&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fract&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bugeye&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 20&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;kaleid&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 3&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;9&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;smooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;layer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hue&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mask&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;shape&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mult&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;thresh&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 4&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;diff&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;src&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;o0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;rotate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScrollX&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;osc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;modulateScrollY&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dist&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;01&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;smooth&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;   .colorama()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;saturate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;fft&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;out&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I had the intention of trying to use 2 channels (&lt;code&gt;o0&lt;/code&gt; and &lt;code&gt;o1&lt;/code&gt;), but it proved
too complicated to manage.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>server-first-steps</title>
        <published>2024-10-24T00:00:00+00:00</published>
        <updated>2024-10-24T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/server-first-steps/"/>
        <id>https://glfmn.io/posts/server-first-steps/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/server-first-steps/">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;I host some stuff on a server, and I am trying to do a better job of it by using
Ansible to maintain things; however, even before I can use Ansible on a new
sever, there are a few first steps I need to do…&lt;/p&gt;
&lt;p&gt;Unfortunately, I can never remember what they are, so I am documenting them for
me and anyone else that happens to find this page.&lt;/p&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;Disclaimer!&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;I am &lt;strong&gt;&lt;em&gt;not&lt;/em&gt;&lt;/strong&gt; a professional, just a hobbyist trying to do things a little bit
smarter.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;h2 id=&quot;creating-a-user&quot;&gt;Creating a user&lt;/h2&gt;
&lt;p&gt;Through my cloud provider, I created an Ubuntu server with a static
&lt;abbr title=&quot;internet protocol address&quot;&gt;IP address&lt;/abbr&gt; and root user.&lt;/p&gt;
&lt;p&gt;Log in via &lt;abbr title=&quot;Secure SHell&quot;&gt;&lt;code&gt;ssh&lt;/code&gt;&lt;/abbr&gt; using the command:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;ssh&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; root@10.10.10.10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Use the server&amp;#39;s static IP&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once logged in, create a new user using the interactive &lt;code&gt;adduser&lt;/code&gt; command:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;adduser&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; admin&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; In place of admin, use whatever name you like&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This should prompt you to add a password and optional information to your user.&lt;/p&gt;
&lt;p&gt;Next we add the user (&lt;code&gt;admin&lt;/code&gt; in this case) to the
&lt;abbr title=&quot;administrative privileges&quot;&gt;&lt;code&gt;sudo&lt;/code&gt;&lt;/abbr&gt; group, so the user has
administrative privileges:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;usermod&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;aG&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; sudo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; admin&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; replace admin with your user name&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;useradd&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;Despite being similarly named, &lt;code&gt;useradd&lt;/code&gt; will not create a home directory or
password for the user unless you pass them as arguments, which can get weird
when you don&#39;t know this and create a broken user.&lt;/p&gt;
&lt;p&gt;You can recover by using &lt;code&gt;userdel&lt;/code&gt; to delete the user you created and running
&lt;code&gt;adduser&lt;/code&gt; instead.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;h2 id=&quot;generating-an-ssh-key&quot;&gt;Generating an SSH Key&lt;/h2&gt;
&lt;p&gt;If you do not already have an &lt;abbr title=&quot;secure shell&quot;&gt;&lt;code&gt;ssh&lt;/code&gt;&lt;/abbr&gt; key,
generate one using:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;ssh-keygen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;C&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; admin&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Use any comment that you find useful&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It will ask for a file name; it will generate a &lt;em&gt;&lt;strong&gt;public&lt;/strong&gt;&lt;/em&gt; key file like this
one:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;~/.ssh/admin.pub&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILW3/HFZ5jc9LBdfRB/pGtt/+gzL+b/96psasefYcmuP admin&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Do not share the private key!&lt;/p&gt;
&lt;h2 id=&quot;add-ssh-key-to-your-server&quot;&gt;Add SSH key to your server&lt;/h2&gt;
&lt;p&gt;Now we need to copy the public key to the user we intend to log in as on the server.
Luckily, &lt;code&gt;ssh-copy-id&lt;/code&gt; can help us with this process. For example:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;ssh-copy-id&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; .ssh/admin&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; admin@10.10.10.10&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;According to the manual, &lt;code&gt;ssh-copy-id&lt;/code&gt; will attempt to log into the server
with each provided key, and if it fails, will log in at the end and add each
&lt;strong&gt;public&lt;/strong&gt; key that failed to the user&#39;s &lt;code&gt;authorized_keys&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;Keys in the &lt;code&gt;authorized_keys&lt;/code&gt; file can bypass password authentication. As
long as the private key stays private, this is more secure than password
authentication as only people in possession of the key can log in. This means
nobody can try to guess the password of your user and use it to log in.&lt;/p&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;-i identity_file&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;The path to the SSH key we want to add to the host. By default, generated keys
get placed in &lt;code&gt;~/.ssh&lt;/code&gt;, but if you gave a custom file-path when you invoked
&lt;code&gt;ssh-keygen&lt;/code&gt;, use that path instead.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;-n&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;Don&#39;t actually install the keys, just list which keys would be installed. Add
this argument if you just want to try out the command without changing anything.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;admin@10.10.10.10&lt;/code&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;Instead of &lt;code&gt;admin&lt;/code&gt;, use the name of the user you created earlier, and instead
of &lt;code&gt;10.10.10.10&lt;/code&gt;, use the &lt;abbr title=&quot;internet protocol address&quot;&gt;IP&lt;/abbr&gt; of
your server.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&quot;log-back-into-the-server&quot;&gt;Log back into the server&lt;/h2&gt;
&lt;p&gt;Log into the server using your new &lt;code&gt;ssh&lt;/code&gt; key like so:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;ssh&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; admin@10.10.10.10&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You should be able to log in with no password.&lt;/p&gt;
&lt;h2 id=&quot;ssh-config&quot;&gt;SSH Config&lt;/h2&gt;
&lt;p&gt;Finally, we can make some basic no-brainer SSH config changes.&lt;/p&gt;
&lt;p&gt;First, disable password and root login now that our SSH keys are configured:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;/etc/ssh/sshd_config&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PasswordAuthentication no&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PermitRootLogin no&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Change the port &lt;code&gt;sshd&lt;/code&gt; uses:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;/etc/ssh/sshd_config&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# use a different port!!!&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Port 4761 &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Verify the &lt;code&gt;sshd_config&lt;/code&gt; works using &lt;code&gt;sshd -t&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;And restart the &lt;code&gt;sshd&lt;/code&gt; service.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; systemctl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; restart&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; sshd&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;side-quest-secure-passwordless-sudo&quot;&gt;Side quest: Secure passwordless sudo&lt;/h2&gt;
&lt;p&gt;Using a &lt;abbr title=&quot;pluggable authentication modules&quot;&gt;PAM&lt;/abbr&gt;, one can
configure the server to use the SSH key authentication agent for &lt;code&gt;sudo&lt;/code&gt;
permissions instead of a password.&lt;/p&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;PAM&lt;/code&gt; — Pluggable Authentication Modules&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;Linux system that allows for custom password management, such as using hardware
tokens or one-time-passwords for user login.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;We can use the &lt;a rel=&quot;external&quot; href=&quot;https://manpages.ubuntu.com/manpages/questing/en/man8/pam_ssh_agent_auth.8.html&quot;&gt;&lt;code&gt;pam_ssh_agent_auth&lt;/code&gt;&lt;/a&gt; module to allow using ssh as the auth
module for &lt;code&gt;sudo&lt;/code&gt; (or several other systems which use PAM).&lt;/p&gt;
&lt;p&gt;However, I gather that setting this up requires compiling code and doing some
gnarly config. My server does not have a &lt;code&gt;pam_ssh_agent_auth.so&lt;/code&gt; (or similarly
named) file. I&#39;d also need to edit some gnarly config files, so best left as a
future exercise.&lt;/p&gt;
&lt;h2 id=&quot;troubleshooting-ssh-host-keys&quot;&gt;Troubleshooting SSH Host Keys&lt;/h2&gt;
&lt;p&gt;As some troubleshooting, if the host is missing SSH host keys,  &lt;code&gt;ssh-keygen&lt;/code&gt; can
do this easily like so:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; ssh-keygen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;A&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;-A&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;From the manual page:
&lt;quote&gt;Generate host keys of all default key types (&lt;code&gt;rsa&lt;/code&gt;, &lt;code&gt;ecdsa&lt;/code&gt;, and
&lt;code&gt;ed25519&lt;/code&gt;) if they do not already exist.  The host keys are generated with
the default key file path, an empty passphrase, default bits for the key type,
and default comment.  If -f has also been specified, its argument is used as a
prefix to the default path for the resulting host key files.  This is used by
system administration scripts to generate new host keys.&lt;/quote&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;As far as I can tell, this should only be the case if something is going wrong.&lt;/p&gt;
&lt;p&gt;If using the Ansible playbook provided in Jeff Geerling&#39;s book on Ansible, be
sure to add &lt;q&gt;&lt;code&gt;become: yes&lt;/code&gt;&lt;/q&gt;. This is because the host keys require root
permissions to read! Also, run the playbook with &lt;code&gt;-K&lt;/code&gt; if passwordless &lt;code&gt;sudo&lt;/code&gt; is
not set up.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;yaml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 1&lt;/span&gt;&lt;span&gt;---&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; h&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;osts&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; h&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;osts&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; replace with your host name&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  h&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;andlers&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; n&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ame&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; r&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;estart ssh&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;      s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ervice&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; n&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;ame=ssh state=restarted&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 6&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;  t&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;asks&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 7&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; n&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ame&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; U&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;pdate SSH Configuration&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;      b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ecome&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; yes&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt; 9&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;      l&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ineinfile&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;        d&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;est&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; /&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;etc/ssh/sshd_config&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;        r&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;egexp&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;{{ item.regexp }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;        l&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;{{ item.line }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;        s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;tate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;resent&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;        v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;alidate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;sshd -t -f %s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;      w&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ith_items&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; r&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;egexp&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;^PasswordAuthentication&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;          l&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;PasswordAuthentication no&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; r&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;egexp&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;^PermitRootLogin&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;19&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;          l&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;PermitRootLogin no&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;        -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; r&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;egexp&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;^Port&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;          l&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;ine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;Port 4761&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; use a different port!!!&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;22&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;      n&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;otify&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; r&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;estart ssh&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Be sure to update the port to match in your hosts file.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>strudel-samples.txt</title>
        <published>2024-10-20T00:00:00+00:00</published>
        <updated>2024-10-20T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/presentations/algorave-2/"/>
        <id>https://glfmn.io/presentations/algorave-2/</id>
        
        <content type="html" xml:base="https://glfmn.io/presentations/algorave-2/">&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot; class=&quot;vertically-centered&quot;&gt;
&lt;header&gt;
&lt;h2 id=&quot;samples-redux&quot;&gt;Samples Redux&lt;/h2&gt;
&lt;/header&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://strudel.cc&quot;&gt;strudel&lt;/a&gt; has lots of awesome ways to modulate, loop, chop,
and process samples; kind of like having a &lt;code&gt;Digitakt&lt;/code&gt; in your browser.&lt;/p&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot; class=&quot;vertically-centered&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;playing-samples&quot;&gt;Playing samples&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;Playing a sample is the same as playing a sound; in fact, most sounds we have
already played with &lt;em&gt;are&lt;/em&gt; samples:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; sound&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;xylophone_hard_ff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot; class=&quot;vertically-centered&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;speed&quot;&gt;Speed&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;&lt;code&gt;speed&lt;/code&gt; controls the rate of playback, altering the pitch:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;groove&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;bd!2 [~ bd]!2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;swing&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;speed&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;1 0.75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Negative&lt;/strong&gt; speeds reverse sample playback:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;groove&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;sd!2 [~ sd]!2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;speed&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;1 -1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;swing&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section  tabindex=&quot;0&quot; class=&quot;vertically-centered&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;cut&quot;&gt;Cut&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;&lt;code&gt;cut&lt;/code&gt; creates cut groups; only 1 sample can play at a time in any cut group.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;melody&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;piano*4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;cut&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;drums&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;bd*4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;late&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;16&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;cut&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;1 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;sample-banks&quot;&gt;Sample Banks&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;All the percussion we have used thus far are samples.&lt;/p&gt;
&lt;p&gt;We can choose different sample &lt;code&gt;bank&lt;/code&gt;s to pull samples from:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;groove&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; stack&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;bd!2 [~ bd]!2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;swing&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;hh*8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;~ ~ cp ~&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bank&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;RolandTR808&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;
&lt;p&gt;Try changing the sample bank:&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;&lt;code&gt;bank&lt;/code&gt;&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&quot;&lt;code&gt;RolandTR808&lt;/code&gt;&quot;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Iconic drum machine of 80s hip-hop sounds&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&quot;&lt;code&gt;RolandTR909&lt;/code&gt;&quot;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Popular in techno and house&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&quot;&lt;code&gt;BossDR220&lt;/code&gt;&quot;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Simplified Roland TR707&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&quot;&lt;code&gt;OberheimDMX&lt;/code&gt;&quot;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Influential 1980s drum machine&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&quot;&lt;code&gt;LinnDrum&lt;/code&gt;&quot;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;1980s drum machine targeting realistic sound&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot;&gt;
&lt;p&gt;The &lt;code&gt;bank&lt;/code&gt; function works by putting the name of the sample bank with an &lt;code&gt;_&lt;/code&gt;
at the front of sample names.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bank&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;bd*2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bank&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;RolandTR808&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;explicit&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;RolandTR808_bd*2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;late&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;
&lt;br/&gt;
&lt;p&gt;Find sample banks in the &lt;q&gt;drum machine&lt;/q&gt; tab of the &lt;q&gt;sounds&lt;/q&gt; window.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;&lt;strong&gt;Not all sample banks support the same percussion sounds!&lt;/strong&gt;&lt;/p&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;velocity&quot;&gt;Velocity&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;Changing the velocity of a sample changes its loudness.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;d1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;bd*4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bank&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;RolandTR909&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;velocity&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;range&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; sine&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;begin-end&quot;&gt;Begin &amp;amp; End&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;Strudel can start and end samples in different spots:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; n&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0*2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;numbers&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;late&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;16&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;begin&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0 0.2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;cut&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;bd sd&amp;gt;*8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;end&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0.1 0.5 0.75 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slow&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;filter&quot;&gt;Filter&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;Strudel also supports filters:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;sd*8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;bank&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;RolandTR909&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hpf&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;range&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 2000&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; sine&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slow&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hpq&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;0 0 10&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Resonance&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;hpattack&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;0 0.1 1 4 -4&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slow&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Envelope attack&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;Filter Type&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;hpf&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;high-pass filter&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;lpf&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;low-pass filter&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;bpf&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;band-pass filter&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;djf&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;dj-filter (try different values from &lt;code&gt;0&lt;/code&gt; to &lt;code&gt;1.0&lt;/code&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot; class=&quot;vertically-centered&quot;&gt;
&lt;header&gt;
&lt;h2 id=&quot;loading-samples&quot;&gt;Loading Samples&lt;/h2&gt;
&lt;/header&gt;
&lt;p&gt;Strudel can load samples with a custom name from a URL:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span&gt; conga&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/samples/menegass-conga-7.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt; ]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;conga*2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;aside&gt;
The url &lt;em&gt;must&lt;/em&gt; be in &lt;code&gt;&#39;&lt;/code&gt;single quotes&lt;code&gt;&#39;&lt;/code&gt;. Double
quotes always get interpereted as patterns.
&lt;/aside&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;variations&quot;&gt;Variations&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;Samples can have variations; 2 ways to select the variations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pass a pattern of sample indices into the &lt;code&gt;n&lt;/code&gt; function&lt;/li&gt;
&lt;li&gt;Append the index to the sample name with &lt;code&gt;:&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  conga&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/samples/menegass-conga-7.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; CC-BY 4.0: https://freesound.org/people/MrRentAPercussionist/sounds/455509/ &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;    &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/samples/mrrentapercussionist-congas-muted-slap.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; cat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;conga:&amp;lt;0 1&amp;gt;*2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;conga*2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;n&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;sample-packs&quot;&gt;Sample Packs&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;One can make sample packs in strudel using a special &lt;code&gt;strudel.json&lt;/code&gt; file.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;json&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#689D6A, #689D6A);&quot;&gt;_base&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;https://glfmn.io/samples/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#689D6A, #689D6A);&quot;&gt;conga&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;menegass-conga-7.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;mrrentapercussionist-congas-muted-slap.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#689D6A, #689D6A);&quot;&gt;tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;stomachache-bongopattern145bpm&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#689D6A, #689D6A);&quot;&gt;train&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;nnus_train_whistle1.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;quote&gt;&lt;code&gt;_base&lt;/code&gt;&lt;/quote&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;A URL that gets added to the beginning of every other URL in the file.&lt;/dd&gt;
&lt;/dl&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot; class=&quot;vertically-centered&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;github&quot;&gt;Github&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;Strudel has a special shorthand from loading samples from
&lt;abbr title=&quot;nerdy dropbox with superpowers&quot;&gt;github&lt;/abbr&gt; repositories.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;github:path/to/repo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot; class=&quot;vertically-centered&quot;&gt;
&lt;header&gt;
&lt;h2 id=&quot;longer-samples&quot;&gt;Longer samples&lt;/h2&gt;
&lt;/header&gt;
&lt;p&gt;By default, samples play at normal speed until the end. For long samples, this
causes &lt;strong&gt;&lt;code&gt;chaos&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h3 id=&quot;overlap&quot;&gt;Overlap&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;Try playing this sample:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/samples/stomachache-bongopattern145bpm.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;cut&lt;/code&gt; groups can mitigate the chaos. Try adding &lt;code&gt;.cut(1)&lt;/code&gt;.&lt;/p&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h3 id=&quot;slow&quot;&gt;Slow&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;We can give more space for the sample to play out with &lt;code&gt;slow&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/samples/stomachache-bongopattern145bpm.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;cut&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slow&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h3 id=&quot;speed-1&quot;&gt;Speed&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;We can speed up the sample to hear more of it:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/samples/stomachache-bongopattern145bpm.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;cut&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slow&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;speed&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;25&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h3 id=&quot;setcps&quot;&gt;setcps&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;We can even try changing strudels tempo:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/samples/stomachache-bongopattern145bpm.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setcps&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;cut&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;slow&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;speed&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;25&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;setcps&lt;/code&gt; sets &lt;code&gt;cycles&lt;/code&gt;-per-second. A lower &lt;code&gt;cps&lt;/code&gt; results in a faster tempo.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;We can use a formula to convert &lt;code&gt;bpm&lt;/code&gt; to &lt;code&gt;cps&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; bpm&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 120&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setcps&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;bpm&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h3 id=&quot;loopat&quot;&gt;LoopAt&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;&lt;code&gt;loopAt&lt;/code&gt; speeds up the sample so that it loops perfectly in &lt;code&gt;n&lt;/code&gt; cycles.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;https://glfmn.io/samples/stomachache-bongopattern145bpm.wav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setcps&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;125&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;tumbao&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;loopAt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Combining knowledge of sample length and strudel&#39;s tempo is key!&lt;/p&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;section&gt;
&lt;header&gt;
# fit
&lt;/header&gt;
&lt;p&gt;&lt;code&gt;fit&lt;/code&gt; makes the pattern perfectly fit its event duration:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; n&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;0 [0 1]&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;numbers&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;end&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;1!2 0.5&amp;gt;/2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fit&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;aside&gt;This plays well with `end`.&lt;/aside&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h2 id=&quot;chopping-samples&quot;&gt;Chopping samples&lt;/h2&gt;
&lt;/header&gt;
&lt;p&gt;Strudel has lots of fun and gnarly ways of chopping up samples and making them
feel new again.&lt;/p&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h3 id=&quot;breakbeats&quot;&gt;Breakbeats!&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;But first, let&#39;s get some break beats :)&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;github:yaxu/clean-breaks&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setcps&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;120&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;amen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;loopAt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h3 id=&quot;chop&quot;&gt;Chop&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;&lt;code&gt;chop&lt;/code&gt; seamlessly splits the sample into multiple parts.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;github:yaxu/clean-breaks&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setcps&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;144&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;amen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;chop&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;lt;blue red&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;loopAt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;_punchcard&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span&gt; labels&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;aside&gt;There should be no audible difference, but try changing the `chop` amount
and see what happens to the punchcard.&lt;/aside&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h3 id=&quot;chop-more&quot;&gt;chop + more&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;Once the sample is chopped, we can start to transform it with patterns:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;github:yaxu/clean-breaks&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setcps&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;120&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;groove&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;chop&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;32&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;loopAt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;velocity&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;sine&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;range&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;fast&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mul&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;speed&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;0.75 1.5 0.9 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;_punchcard&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span&gt; labels&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section&gt;
&lt;header&gt;
&lt;h3 id=&quot;striate&quot;&gt;striate&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;Instead of chopping, we can &lt;code&gt;striate&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;numbers:0 numbers:1 numbers:2 numbers:3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;cut&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;color&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;red white purple brown&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;every&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; striate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;  .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;_punchcard&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;{&lt;/span&gt;&lt;span&gt; labels&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Repeats the pattern &lt;code&gt;n&lt;/code&gt; times, but only playing the 1st &lt;code&gt;nth&lt;/code&gt; of the sample the
first time, the 2nd &lt;code&gt;nth&lt;/code&gt; the next time, and so on.&lt;/p&gt;
&lt;aside&gt;Kind of a weird one, and part of me wonders whether it is buggy.&lt;/aside&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section class=&quot;vertically-centered&quot;&gt;
&lt;header&gt;
&lt;h2 id=&quot;jam-time&quot;&gt;Jam time&lt;/h2&gt;
&lt;/header&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;samples&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;github:yaxu/clean-breaks&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Downtempo&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;setcps&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; s&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;amen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;loopAt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;chop&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;32&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;gain&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section class=&quot;vertically-centered&quot;&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://strudel.cc/?cC-XEmP9onII&quot;&gt;&lt;em&gt;Fin.&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/section&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>livecode-workshop-postmortem</title>
        <published>2024-09-30T00:00:00+00:00</published>
        <updated>2024-09-30T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/algorave/"/>
        <id>https://glfmn.io/posts/algorave/</id>
        
        <summary type="html">&lt;h2 id=&quot;description&quot;&gt;Description&lt;/h2&gt;
&lt;p&gt;As a society, I believe we have a bias towards thinking of code as a tool
for automation and industrialization. Code is a way to automate things that
people do, and often in doing so becomes a tool for dehumanization. In the most
pessimistic view, the people that are able to code are advanced &lt;em&gt;technicians&lt;/em&gt;,
implementers of an inhumane future.&lt;/p&gt;
&lt;p&gt;However, programming can also be an interface, a way to insert the human back
into the machine. &lt;strong&gt;Live coding&lt;/strong&gt; reclaims programming as a means of making
art and, in our case, music.&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>intro-to-algorave.txt</title>
        <published>2024-09-29T00:00:00+00:00</published>
        <updated>2024-09-29T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/presentations/algorave/"/>
        <id>https://glfmn.io/presentations/algorave/</id>
        
        <summary type="html">&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot;&gt;
&lt;header&gt;
&lt;h2 id=&quot;live-coding&quot;&gt;Live Coding&lt;/h2&gt;
&lt;/header&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;verb&lt;/code&gt;.&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;Writing and running code in a live environment, where one is able to run and
manipulate the program at the same time.&lt;/dd&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;code&gt;noun&lt;/code&gt;.&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;A form of performance art using code as the interface to create art with an
emphasis on live manipulation of code that is usually visible to the audience.
Both pre-planned and fully improvised.&lt;/dd&gt;
&lt;/dl&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tabindex=&quot;0&quot;&gt;
&lt;header&gt;
&lt;h3 id=&quot;ethos&quot;&gt;Ethos&lt;/h3&gt;
&lt;/header&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;Software development&lt;/code&gt;&lt;/strong&gt; is usually a practice focused on achieving a relatively
objective goal, with quantifiable results:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Commerce&lt;/li&gt;
&lt;li&gt;Automation&lt;/li&gt;
&lt;li&gt;Production&lt;/li&gt;
&lt;/ul&gt;
&lt;br/&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;Live Coding&lt;/code&gt;&lt;/strong&gt; is an alternative approach to the meaning of writing code
focused on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Performance&lt;/li&gt;
&lt;li&gt;Creativity&lt;/li&gt;
&lt;li&gt;Community&lt;/li&gt;
&lt;/ul&gt;
&lt;br/&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;
&lt;!-- SLIDE ########################## --&gt;
&lt;section tab-index=&quot;0&quot; class=&quot;vertically-centered&quot;&gt;
&lt;header&gt;
&lt;/header&gt;
&lt;p&gt;To me, live coding is a reaction to the alienation technology can too often
represent. It emphasizes the poetic, aesthetic, and artistic aspects of code.&lt;/p&gt;
&lt;p&gt;Code uniquely expresses thought processes and creative problem-solving;
showing your code reveals how you think.&lt;/p&gt;
&lt;footer&gt;
  &lt;a tabindex=&quot;-1&quot; href=&quot;/&quot;&gt;glfmn.io&lt;/a&gt;
  &lt;div class=&quot;page-number&quot;&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/section&gt;</summary>
        
    </entry>
      
    <entry xml:lang="en">
        <title>ecs-1</title>
        <published>2024-03-30T00:00:00+00:00</published>
        <updated>2024-03-30T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/ecs-1/"/>
        <id>https://glfmn.io/posts/ecs-1/</id>
        
        <summary type="html">&lt;h2 id=&quot;description&quot;&gt;Description&lt;/h2&gt;
&lt;p&gt;A tour of the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/bevyengine/bevy/blob/v0.12.1/crates/bevy_ecs&quot;&gt;&lt;code&gt;bevy_ecs&lt;/code&gt;&lt;/a&gt; &lt;strong&gt;v0.12.1&lt;/strong&gt; entity and component storage.&lt;/p&gt;
&lt;h2 id=&quot;bevy&quot;&gt;Bevy&lt;/h2&gt;
&lt;p&gt;Bevy is a modular game engine based around an
&lt;abbr title=&quot;Entity-Component- System&quot;&gt;ECS&lt;/abbr&gt;, or &lt;code&gt;Entity&lt;/code&gt;, &lt;code&gt;Component&lt;/code&gt;,
&lt;code&gt;System&lt;/code&gt; architecture; to quote the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/bevyengine/bevy/blob/v0.12.1/crates/bevy_ecs/README.md&quot;&gt;&lt;code&gt;README&lt;/code&gt;&lt;/a&gt; (emphasis mine):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ECS is a software pattern that involves breaking your program up into
&lt;code&gt;Entities&lt;/code&gt;, &lt;code&gt;Components&lt;/code&gt;, and &lt;code&gt;Systems&lt;/code&gt;. Entities are unique &lt;em&gt;things&lt;/em&gt; that
are assigned groups of Components, which are then processed using Systems.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Additionally, &lt;a rel=&quot;external&quot; href=&quot;https://github.com/bevyengine/bevy/blob/v0.12.1/crates/bevy_ecs&quot;&gt;&lt;code&gt;bevy_ecs&lt;/code&gt;&lt;/a&gt; sports some fancy features like robust change
detection, dense and sparse entity storage, archetypes, and more cool stuff
that we will surely be getting into.&lt;/p&gt;
&lt;p&gt;This design is principally useful because of the flexibility it provides in
designing and implementing a game, and secondarily because it can also have
great performance characteristics when implemented correctly.&lt;/p&gt;
&lt;p&gt;I&#39;ve implemented a couple of simple projects using Bevy, and while it was
still very immature at the time, it was a very great experience and I highly
recommend trying it out if you are interested.&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>ecs-0</title>
        <published>2024-03-29T00:00:00+00:00</published>
        <updated>2024-03-29T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/ecs-0/"/>
        <id>https://glfmn.io/posts/ecs-0/</id>
        
        <summary type="html">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;I really liked working with bevy and the bevy ECS in rust; I was peering
through the code of the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/bevyengine/bevy/tree/main/crates/bevy_ecs&quot;&gt;&lt;code&gt;bevy_ecs&lt;/code&gt;&lt;/a&gt; and I realized it&#39;s actually very easy
to understand. I&#39;ve been meaning to write my own ECS to develop skills that I
want, so I&#39;ve decided to do a loose port to Zig, focusing almost entirely on
the entity storage and lookup sides for the moment.
But what is an ECS? To quote the bevy project:&lt;/p&gt;
&lt;div class=&quot;text-indent&quot;&gt;
  &lt;p&gt;&lt;quote&gt;ECS is a software pattern that involves breaking your program up into
&lt;code&gt;Entities&lt;/code&gt;, &lt;code&gt;Components&lt;/code&gt;, and &lt;code&gt;Systems&lt;/code&gt;. Entities are unique &lt;em&gt;things&lt;/em&gt; that are
assigned groups of Components, which are then processed using Systems.&lt;/quote&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;h2 id=&quot;rationale&quot;&gt;Rationale&lt;/h2&gt;
&lt;p&gt;More than anything, I am curious to see how relying more on &lt;code&gt;comptime&lt;/code&gt; than
&lt;code&gt;trait&lt;/code&gt;s will result in a different system. From my current, uninformed
perspective, I would think certain things will be easier, such as finding out
the access requirements of systems, and certain things could be harder, such as
adding constraints on what can and can&#39;t be a Component.&lt;/p&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;tagging types&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;It occurs to me that Rust&#39;s trait and proc-macro systems allow one to tag
types and query that information at compile time (or sometimes even runtime);
I sometimes wish that zig had a way to add tags or even metadata to types at
accessible at &lt;code&gt;comptime&lt;/code&gt;; it wouldn&#39;t have to look anything like Rust&#39;s trait
system either.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;p&gt;I am also curious as to how also how exposing control over memory allocation
would push things in a different direction; while &lt;a rel=&quot;external&quot; href=&quot;https://github.com/bevyengine/bevy/tree/main/crates/bevy_ecs&quot;&gt;&lt;code&gt;bevy_ecs&lt;/code&gt;&lt;/a&gt; does implement
some custom data structures, memory allocators aren&#39;t really taken into
account. Trying out different memory allocators is something that I would like
to explore.&lt;/p&gt;
&lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt;
&lt;p&gt;Our journey through understanding and implementing an ECS:&lt;/p&gt;
&lt;dl class=&quot;hl&quot;&gt;
&lt;dt class=&quot;hl-header&quot;&gt;&lt;strong&gt;&lt;a href=&quot;https://glfmn.io/posts/ecs-1/&quot;&gt;Part 1: Bevy&#39;s Entities and Components&lt;/a&gt;&lt;/strong&gt;&lt;/dt&gt;
&lt;dd class=&quot;hl-body&quot;&gt;A walkthrough of how Bevy ECS works, focused on how entities are stored and
retrieved.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;And more to come!&lt;/p&gt;</summary>
        
    </entry>
      
      
    <entry xml:lang="en">
        <title>hardmode-triangle-2</title>
        <published>2023-11-24T00:00:00+00:00</published>
        <updated>2023-11-24T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/hardmode-triangle-2/"/>
        <id>https://glfmn.io/posts/hardmode-triangle-2/</id>
        
        <summary type="html">&lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt;
&lt;p&gt;EGL is a library for writing all the glue that goes in between your
application and the operating system to coordinate access to resources on the
GPU, in a &lt;em&gt;platform independent&lt;/em&gt; way.&lt;/p&gt;
&lt;p&gt;In specific, EGL is a mechanism for allowing the graphics driver to share
memory on the GPU between different rendering contexts. In our case, the
contexts are the OpenGL context that our application uses and the OpenGL
context that the compositor uses, and the memory—or buffer—is the
contents of the application window. It is worth remembering that there are
other types of buffers we might also share, such as cursors and popup windows.&lt;/p&gt;
&lt;p&gt;EGL is managed by the same people responsible for OpenGL: the Khronos group.
It also has extensions just like OpenGL does. The API of EGL is defined in
a so-called &lt;a href=&quot;https://glfmn.io/code/EGL/egl-xml/&quot;&gt;registry XML file&lt;/a&gt;, just like OpenGL. The actual
&lt;em&gt;implementation&lt;/em&gt;, however, is left up to your operating system and graphics
drivers.&lt;/p&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;Note&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;On Linux there is a reasonable chance EGL is implemented by &lt;a rel=&quot;external&quot; href=&quot;https://docs.mesa3d.org/egl.html&quot;&gt;Mesa&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;p&gt;In this part we will:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Get zig OpenGL bindings set up&lt;/li&gt;
&lt;li&gt;Set up EGL on our system&lt;/li&gt;
&lt;li&gt;Link system EGL and set up the headers&lt;/li&gt;
&lt;li&gt;Get familiar with the EGL entry point: &lt;code&gt;EGLDisplay&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Configure and initialize our EGL and OpenGL contexts&lt;/li&gt;
&lt;li&gt;Make EGL surfaces that are linked to wayland surfaces&lt;/li&gt;
&lt;li&gt;Draw our triangle!&lt;/li&gt;
&lt;/ol&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;Resources&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://wayland-book.com/surfaces/dmabuf.html&quot;&gt;wayland-book&lt;/a&gt; has a section on rendering with the GPU, but I find it is
severely lacking in detail if you don&#39;t already know EGL.&lt;/p&gt;
&lt;p&gt;The &lt;a rel=&quot;external&quot; href=&quot;https://wayland.freedesktop.org/docs/html/ch03.html#sect-Wayland-Architecture-wayland_rendering&quot;&gt;Wayland Protocol Docs&lt;/a&gt; have a pretty good section on
rendering that can give some context, though again it really helps to
understand EGL already.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;h2 id=&quot;opengl-setup&quot;&gt;OpenGL Setup&lt;/h2&gt;
&lt;p&gt;Using &lt;a rel=&quot;external&quot; href=&quot;https://github.com/MasterQ32/zig-opengl&quot;&gt;&lt;code&gt;zig-opengl&lt;/code&gt;&lt;/a&gt;, it is possible to generate a zig file with bindings for
whichever OpenGL version and extensions we need. Unlike &lt;a rel=&quot;external&quot; href=&quot;https://github.com/ifreund/zig-wayland&quot;&gt;&lt;code&gt;zig-wayland&lt;/code&gt;&lt;/a&gt;,
&lt;a rel=&quot;external&quot; href=&quot;https://github.com/MasterQ32/zig-opengl&quot;&gt;&lt;code&gt;zig-opengl&lt;/code&gt;&lt;/a&gt; does not get run as part of your &lt;code&gt;build.zig&lt;/code&gt; file. It is written
in C# and, as a result, it requires a &lt;a rel=&quot;external&quot; href=&quot;https://learn.microsoft.com/en-us/dotnet/core/install/linux&quot;&gt;&lt;code&gt;dotnet&lt;/code&gt; 7.0&lt;/a&gt; runtime to be installed in
order to run the generator.&lt;/p&gt;
&lt;p&gt;Once that is done, generating the zig OpenGL bindings can be done like so:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;git&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; clone&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;-recursive&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; https://github.com/MasterQ32/zig-opengl&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt;cd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; zig-opengl&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dotnet&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; run&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;OpenGL-Registry/xml/gl.xml&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; \ &lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; path&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; to&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; the&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; opengl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; registry&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;gl_4_5.zig&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;                 \ &lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; path&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; to&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; the&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; generated&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; file&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;GL_VERSION_4_5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;               #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; opengl version&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Place the generated &lt;a href=&quot;https://glfmn.io/code/hardmode-triangle/gl-4-5-zig/&quot;&gt;&lt;code&gt;gl_4_5.zig&lt;/code&gt;&lt;/a&gt; in your &lt;code&gt;deps&lt;/code&gt; folder and then add the
following to your &lt;code&gt;build.zig&lt;/code&gt; file:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;build.zig&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;28&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;exe&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;addModule&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;gl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; b&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;createModule&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;29&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;source_file&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; .&lt;/span&gt;&lt;span&gt;{ &lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;path&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;deps/gl_4_5.zig&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;30&lt;/span&gt;&lt;span&gt;}))&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;And then add the following to &lt;code&gt;main.zig&lt;/code&gt;:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;src/main.zig&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;zig&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#9D0006, #FB4934);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt; gl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; @import&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;gl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;h2 id=&quot;egl-setup&quot;&gt;EGL Setup&lt;/h2&gt;
&lt;p&gt;In order for our application to use EGL, we need to have access to the proper
header files and object files. I opted to use the system&#39;s EGL headers which
required me to install some packages. For example, on Ubuntu I needed to
install &lt;code&gt;libwayland-dev&lt;/code&gt; and &lt;code&gt;libegl-dev&lt;/code&gt;; on different distros the package
names might be different.&lt;/p&gt;
&lt;p&gt;We should already have &lt;code&gt;libwayland-dev&lt;/code&gt; installed from the previous part, but
we will be using new EGL specific functionality defined in the system-wide
&lt;a href=&quot;https://glfmn.io/code/hardmode-triangle/wayland-egl-h/&quot;&gt;&lt;code&gt;wayland-egl.h&lt;/code&gt;&lt;/a&gt; header for the first time here.&lt;/p&gt;
&lt;p&gt;It can be helpful to know where the actual header files we depend on are
located. This is because some of the documentation you will find online can
be incomplete compared to looking at the actual source for the header files.
On my Ubuntu system, the headers I needed to reference can be found at:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;/usr/include/EGL/egl.h&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;/usr/include/EGL/eglext.h&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;/usr/include/wayland-client-core.h&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;/usr/include/wayland-egl.h&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&quot;finding-packages&quot;&gt;Finding Packages&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
  &lt;p&gt;On Ubuntu I was able to figure this out using &lt;code&gt;dpkg&lt;/code&gt;.  When you know
the package you installed (for example &lt;code&gt;libwayland-dev&lt;/code&gt;) but you don&#39;t
know which headers it installed, you can do the following:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dpkg&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;L&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; libwayland-dev&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; grep&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;.h&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; or .so or .xml&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When you know the file-path or even just part of it, but you don&#39;t know
which package installed that file, you can use:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dpkg&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;S&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; EGL&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; sort&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Which will output something like:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;libegl-dev:amd64: /usr/include/EGL&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;libegl-dev:amd64: /usr/include/EGL/eglext.h&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;libegl-dev:amd64: /usr/include/EGL/egl.h&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;libegl-dev:amd64: /usr/include/EGL/eglplatform.h&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;libegl-dev:amd64: /usr/lib/x86_64-linux-gnu/libEGL.so&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you are missing any of these files, you need to either get the headers and
copy them into your project or install the required system packages (listed
above). For example on Ubuntu if you are missing the headers you can run:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; apt&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; install&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; libegl-dev&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; EGL headers&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</summary>
        
    </entry>
      
      
      
      
      
      
    <entry xml:lang="en">
        <title>a-game</title>
        <published>2023-11-01T00:00:00+00:00</published>
        <updated>2023-11-01T00:00:00+00:00</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/a-game/"/>
        <id>https://glfmn.io/posts/a-game/</id>
        
        <content type="html" xml:base="https://glfmn.io/posts/a-game/">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;I feel like when people describe the game they want to make, they can always
describe it relative to other games, or list a bunch of games that make
sense as clear inspiration. And yet I don&#39;t really feel like I can do that
with this game that I want to make. What comes to mind are more moments, moods,
impressions. The sort of things that are uncomfortable to use as the first
points of reference when talking about making a game.&lt;/p&gt;
&lt;p&gt;The visual aspects are easier to tease out and describe:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;moody, limited color pallets&lt;/li&gt;
&lt;li&gt;cramped interiors vs the empty void of outer space&lt;/li&gt;
&lt;li&gt;a bunch of &lt;a href=&quot;https://glfmn.io/posts/a-game/sailboats.jpg&quot;&gt;sailboats&lt;/a&gt; moored in a cold, foggy harbor&lt;/li&gt;
&lt;li&gt;A folding bicycle on cylindrical space stations&lt;/li&gt;
&lt;li&gt;strong colored lights&lt;/li&gt;
&lt;li&gt;temporally-stable blue-noise dithering&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://glfmn.io/posts/a-game/Suit2.png&quot;&gt;simple&lt;/a&gt; 3D graphics&lt;/li&gt;
&lt;li&gt;isometric camera&lt;/li&gt;
&lt;li&gt;The menus from &lt;a href=&quot;/posts/a-game/menu.png&quot;&gt;NeiR&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://youtu.be/p6EJyAiyNJY?t=40&quot;&gt;this song&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It&#39;s also easy to break down into themes, and to think about the story.&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0&quot;&gt;
&lt;strong&gt;The game is about actually living on a space ship&lt;/strong&gt;
&lt;/p&gt;
&lt;div class=&quot;text-indent&quot;&gt;
  &lt;p&gt;It breaks down, it requires attention, maintenance, repair, with quiet moments
in-between to pass the time.&lt;/p&gt;
&lt;/div&gt;
&lt;p style=&quot;margin-bottom: 0&quot;&gt;
&lt;strong&gt;The game is about migration and belonging&lt;/strong&gt;
&lt;/p&gt;
&lt;div class=&quot;text-indent&quot;&gt;
  &lt;p&gt;What does it mean to travel? what happens when there is no future in your
own home? what happens when you don&#39;t belong anywhere? Why are some people
cosmopolitans and some people refugees?&lt;/p&gt;
&lt;/div&gt;
&lt;p style=&quot;margin-bottom: 0&quot;&gt;
&lt;strong&gt;The game is about the limits and tensions of self-reliance&lt;/strong&gt;
&lt;/p&gt;
&lt;div class=&quot;text-indent&quot;&gt;
  &lt;p&gt;Having good, simple tools. Knowing how things work. Valuing the materials,
processes, and labor that go into things, so they become more than disposable
objects: so they can be repaired, loved, and cared for.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;But I have no obvious reference in terms of other games. I can&#39;t tell you
that *&lt;em&gt;&lt;abbr title=&quot;indie devlog voice&quot;&gt;&lt;em&gt;ahem&lt;/em&gt;&lt;/abbr&gt;*&lt;/em&gt; &lt;quote&gt;it&#39;s like
Overcooked, in space, but instead making food you fix things, with the interior
customization of the sims&lt;/quote&gt;.&lt;/p&gt;
&lt;p&gt;I know there will be simple character movement on small isometric and
side-scrolling maps, simple floating button prompts to interact with the world,
fixed first person views to get closer views on things.&lt;/p&gt;
&lt;p&gt;Press a button and pop-open a panel and get a first person view of the
plumbing, wiring, water tanks, fuel lines, you name it. Cut and splice wires,
patch tubes, install electronics. Rewire the whole ship if you feel like it.&lt;/p&gt;
&lt;p&gt;Get struck by a micro-meteorite and fix everything while you&#39;ve got red
flashing alarms going off. Pull a floor panel off to improvise a hull patch
kit. Get fucked by
&lt;abbr title=&quot;Digital Rights Management; Federal Contempt of Business Model&quot;&gt;DRM&lt;/abbr&gt;
trying to replace a broken computer.&lt;/p&gt;
&lt;p&gt;Get stopped by immigration when you arrive at a station trying to find the next
place to refuel and ponder the quiet violence of having to fill out a form while
you are just trying to survive.&lt;/p&gt;
&lt;p&gt;Navigate space, riding gravity like currents. Go outside the airlock, sit on
top of your ship and watch a nebula pass while &lt;a rel=&quot;external&quot; href=&quot;https://youtu.be/p6EJyAiyNJY?t=40&quot;&gt;that song&lt;/a&gt; plays.&lt;/p&gt;
&lt;p&gt;But it falls apart on the details, and that kinda haunts me. I guess she needs
to be discovered and explored, I know the first steps, but from there I have no
idea where things will take me.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>hardmode-triangle-1</title>
        <published>2023-10-30T00:00:00+00:00</published>
        <updated>2025-04-15</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/hardmode-triangle-1/"/>
        <id>https://glfmn.io/posts/hardmode-triangle-1/</id>
        
        <summary type="html">&lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt;
&lt;p&gt;Wayland is a protocol for communicating between a graphical application
and the host system. The program which has a some sort of image to present,
like our humble triangle, is called a wayland &lt;strong&gt;client&lt;/strong&gt;, and the program
that ultimately decides where on screen that image shows up is called the
&lt;strong&gt;compositor&lt;/strong&gt; or &lt;strong&gt;server&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;When we say &lt;strong&gt;wayland&lt;/strong&gt; there are technically two things we could be describing:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;wayland protocol&lt;/strong&gt; — a specification which defines messages that can be
sent between processes and how they are encoded and decoded.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;libwayland&lt;/strong&gt; — a C library which implements functions to encode,
decode, and send wayland protocol messages as well as extra utilities like
an event loop.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;While it is possible to write a wayland application without using libwayland, we
will be using libwayland for this guide.&lt;/p&gt;
&lt;p&gt;By the end of this guide, we will understand the basic functionality of wayland!&lt;/p&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;Note&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;This was written with zig &lt;code&gt;14-dev&lt;/code&gt; and will require some changes to work with
zig &lt;code&gt;14&lt;/code&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;
&lt;p&gt;First thing you will need is to make sure you have the wayland libraries
installed on your system.&lt;/p&gt;
&lt;p&gt;As previously mentioned, we need to install &lt;strong&gt;libwayland&lt;/strong&gt;.  On my system I
needed to install &lt;code&gt;libwayland-dev&lt;/code&gt; (Ubuntu) to get the header files, etc.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; apt&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; install&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; libwayland-dev&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; libwayland-bin contains wayland-scanner and more&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once our dependencies are installed, we can begin our &lt;a rel=&quot;external&quot; href=&quot;https://ziglang.org/download/&quot;&gt;zig&lt;/a&gt; project.
Create a new directory and then create a new project in that directory.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mkdir&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; hardmode-triangle&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#AF3A03, #FE8019);&quot;&gt; cd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; hardmode-triangle&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;zig&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; init-exe&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Initialize our project&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;git&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; init&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;     #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; Our dependencies will be managed with git&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;Note&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;If, like myself, you are retrofitting an existing OpenGL project to use wayland
directly, I recommend starting from scratch and then integrating them after the
fact.  It makes troubleshooting far, far easier, and may also make it easier to
abstract or extract the window creation.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;p&gt;We will be using the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/ifreund/zig-wayland&quot;&gt;&lt;code&gt;zig-wayland&lt;/code&gt;&lt;/a&gt; package as the zig bindings to the wayland
protocol.  As of writing this article, it does not support the package manager,
so we will need to use a git submodule.  We can create a folder called &lt;code&gt;deps&lt;/code&gt;
and add the submodule.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;mkdir&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; deps&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;git&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; submodule&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; add&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    https://github.com/ifreund/zig-wayland.git&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;    deps/zig-wayland&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;git&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; submodule&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; update&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;-init&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;wayland-protocol&quot;&gt;Wayland Protocol&lt;/h2&gt;
&lt;p&gt;The base wayland protocol defines a few basic types and how to encode/decode
them. This is called the &lt;strong&gt;wire format&lt;/strong&gt;. &lt;code&gt;libwayland&lt;/code&gt; also has conventions
on how to transport those messages between client and server, usually over a
Unix socket. These messages are passed back-and-forth asynchronously.&lt;/p&gt;
&lt;p&gt;The wayland protocol works by first creating protocol objects and then
essentially calling functions on those objects. However, because protocol
messages are asynchronous, instead the client makes &lt;strong&gt;request&lt;/strong&gt;s to the server
and the server sends &lt;strong&gt;event&lt;/strong&gt;s to the client.&lt;/p&gt;
&lt;aside&gt;
&lt;h3 class=&quot;aside-heading&quot;&gt;Resources&lt;/h3&gt;
&lt;div class=&quot;text-indent&quot;&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://wayland-book.com/protocol-design/wire-protocol.html&quot;&gt;wayland-book&lt;/a&gt; has a great description of how the protocol works
from the bottom-up, which goes into way more detail.&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://bugaevc.gitbooks.io/writing-wayland-clients/content/black-square/basic-principles-of-wayland.html&quot;&gt;writing-wayland-clients&lt;/a&gt; also has a great introduction to the wayland
protocol.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;p&gt;The valid &lt;strong&gt;request&lt;/strong&gt;s and &lt;strong&gt;event&lt;/strong&gt;s for each object are defined by their
&lt;strong&gt;interface&lt;/strong&gt;.  Some requests will create a new object of a particular
interface and create an ID for that object. That ID then both identifies which
interface and which object is being referred to.  But that leaves us with a
problem: if we need to send a message to create an object, but we also have to
have an object in order to send a message, how do we get the first object?&lt;/p&gt;
&lt;p&gt;That brings us to &lt;code&gt;wl_display&lt;/code&gt;. This interface is special in that it is the
entry point to wayland.  It always implicitly exists and thus we can use it to
begin creating interface objects which will let us send requests and events.&lt;/p&gt;
&lt;h2 id=&quot;building-wayland&quot;&gt;Building Wayland&lt;/h2&gt;
&lt;p&gt;Before we start using wayland it can be helpful to understand a bit more about
the build process: If we take a closer look at the &lt;code&gt;libwayland-dev&lt;/code&gt; package using
&lt;code&gt;dpkg -L&lt;/code&gt; we can see that it installs an XML file called &lt;a href=&quot;/code/wayland.xml&quot;&gt;&lt;code&gt;wayland.xml&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;dpkg&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8F3F71, #D3869B);&quot;&gt;L&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt; libwayland-dev&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; grep&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;\.xml&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; debian-based distros only&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;a href=&quot;/code/wayland.xml&quot;&gt;&lt;code&gt;wayland.xml&lt;/code&gt;&lt;/a&gt; file defines the protocol interfaces:&lt;/p&gt;
&lt;figure class=&quot;file&quot;&gt;
  &lt;figcaption&gt;&lt;cite class=&quot;file-path&quot;&gt;wayland.xml&lt;/cite&gt;&lt;/figcaption&gt;
  &lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#3C3836, #EBDBB2); background-color: light-dark(#FBF1C7, #282828);&quot; &gt;&lt;code data-lang=&quot;xml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;interface&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; name&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;wl_display&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; version&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;32&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;  &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;request&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; name&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;sync&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;33&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; name&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;callback&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;new_id&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt; interface&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;wl_callback&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;34&lt;/span&gt;&lt;span style=&quot;color: light-dark(#B57614, #FABD2F);&quot;&gt;         summary&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#79740E, #B8BB26);&quot;&gt;callback object for the sync request&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C6F64, #A89984);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;35&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;  &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;request&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;  &amp;lt;!--&lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt; truncated &lt;/span&gt;&lt;span style=&quot;color: light-dark(#928374, #928374);font-style: italic;&quot;&gt;--&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;giallo-ln&quot; style=&quot;color: light-dark(#BDAE93, #665C54);&quot;&gt;37&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#427B58, #8EC07C);&quot;&gt;interface&lt;/span&gt;&lt;span style=&quot;color: light-dark(#076678, #83A598);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;There is an application called &lt;code&gt;wayland-scanner&lt;/code&gt; which can read sections of the
protocol XML and automatically generate the C code necessary to send or receive
the various requests and events. This allows for protocol extensions to be
described only in terms of the protocol itself, with the necessary C code being
automatically generated.&lt;/p&gt;</summary>
        
    </entry>
      
      
      
    <entry xml:lang="en">
        <title>hardmode-triangle-0</title>
        <published>2023-10-08T00:00:00+00:00</published>
        <updated>2023-11-24</updated>
        
        <author>
          <name>glfmn</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://glfmn.io/posts/hardmode-triangle-0/"/>
        <id>https://glfmn.io/posts/hardmode-triangle-0/</id>
        
        <summary type="html">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;I decided to start working on a small OpenGL project to evaluate zig as
language to use for some project ideas I had, and it was my first time writing a
graphical application without &lt;strong&gt;&lt;abbr title=&quot;Rust windowing lib&quot;&gt;winit&lt;/abbr&gt;&lt;/strong&gt;
to abstract everything for me.&lt;/p&gt;
&lt;p&gt;OpenGL only provides abstractions for doing computations on the GPU, it doesn&#39;t
open windows for you or handle things like input, etc. For that one uses a
windowing library. In the C/C++/zig world there are a couple of good options:&lt;/p&gt;
&lt;div class=&quot;text-indent&quot;&gt;
  &lt;p&gt;&lt;strong&gt;&lt;abbr title=&quot;Graphics Library FrameWork&quot;&gt;glfw&lt;/abbr&gt;&lt;/strong&gt; —
a small C library that for creating and managing windows, OpenGL and OpenGL ES
contexts and Vulkan surfaces, enumerating monitors and video modes as well as
handling inputs such as keyboard, mouse, joystick, clipboard and time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;abbr title=&quot;Simple Direct Layer 2.0&quot;&gt;sdl2&lt;/abbr&gt;&lt;/strong&gt; —
Simple Direct Layer is a cross-platform development library designed to
provide low level access to audio, keyboard, mouse, joystick, and graphics
hardware via OpenGL and Direct3D.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Since I wanted the option to use Vulkan, it seemed natural to use &lt;strong&gt;glfw&lt;/strong&gt;. I
started getting into it but when it came time to start handling input, I was
feeling kind of dissatisfied with the API. I wanted to know why things where
callback based (I had gotten used to the &lt;a rel=&quot;external&quot; href=&quot;https://docs.rs/winit/latest/winit/event/enum.Event.html&quot;&gt;winit approach&lt;/a&gt;). I
thought this was a good opportunity to try using the Linux platform libraries
directly instead:&lt;/p&gt;
&lt;div class=&quot;text-indent&quot;&gt;
  &lt;p&gt;&lt;strong&gt;&lt;abbr title=&quot;linux windowing protocol&quot;&gt;wayland&lt;/abbr&gt;&lt;/strong&gt; —
A protocol for communicating between an application (client) and a compositor
which combines all the individual application windows into the final image
presented to the display.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;abbr title=&quot;Native Platform Graphics Interface&quot;&gt;EGL&lt;/abbr&gt;&lt;/strong&gt; —
interface between Khronos rendering APIs such as OpenGL ES or Open VG and the
underlying native platform window system.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;It turns out it was &lt;em&gt;a lot harder than I thought,&lt;/em&gt; but I&#39;m not convinced it
ought to be. By this I don&#39;t mean to say that wayland is easy, and that using
it with OpenGL is easy, but I think the lack of any good guides or material
make it harder than it should be. There&#39;s no high level explanation aimed at
a beginner, or at least there isn&#39;t one that also uses OpenGL. Almost every
example I found just gives up and falls back to using &lt;a rel=&quot;external&quot; href=&quot;https://www.glfw.org/&quot;&gt;glfw&lt;/a&gt; or &lt;a rel=&quot;external&quot; href=&quot;https://libsdl.org/&quot;&gt;sdl2&lt;/a&gt;, or
worse is just an unannotated example that assumes you are already familiar
with EGL.&lt;/p&gt;
&lt;p&gt;All I really wanted in this search was to find a simple guide that explained:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What is actually happening at a high level?&lt;/li&gt;
&lt;li&gt;Is there any context that can help me that I might not already know?&lt;/li&gt;
&lt;li&gt;What prerequisite steps would I need to take to even start (dependencies)?&lt;/li&gt;
&lt;li&gt;Does my application take on dependencies that the user needs to install?&lt;/li&gt;
&lt;li&gt;Step-by-step, what do I need to do in order to get a triangle on screen?&lt;/li&gt;
&lt;li&gt;How portable is it?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Since I haven&#39;t been able to find one, and since I am sure to forget these
steps and need to refer back sometime, I decided to write one myself.&lt;/p&gt;</summary>
        
    </entry>
</feed>
