<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vivek on Medium]]></title>
        <description><![CDATA[Stories by Vivek on Medium]]></description>
        <link>https://medium.com/@itguru4all?source=rss-51588d2ebab1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fgqyF_t9ZnuLz6qy</url>
            <title>Stories by Vivek on Medium</title>
            <link>https://medium.com/@itguru4all?source=rss-51588d2ebab1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:51:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itguru4all/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SVG Path Animation in Jetpack Compose]]></title>
            <link>https://medium.com/@itguru4all/svg-path-animation-in-jetpack-compose-79dc4b3d0a4f?source=rss-51588d2ebab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/79dc4b3d0a4f</guid>
            <category><![CDATA[jetpack-compose-animation]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Vivek]]></dc:creator>
            <pubDate>Mon, 29 Jan 2024 17:19:25 GMT</pubDate>
            <atom:updated>2024-01-29T17:19:25.504Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever wondered how to animate a path in Jetpack Compose, you might have come across the insightful article by Rebecca Franks (she follows inspiring people on the internet, and I follow her 😉). In her <a href="https://medium.com/androiddevelopers/making-jellyfish-move-in-compose-animating-imagevectors-and-applying-agsl-rendereffects-3666596a8888">article</a>, she eloquently explains how to animate the path of an SVG file using Jetpack Compose. Rebecca outlines the process of creating an ImageVector for an SVG file, which can then be seamlessly integrated into our Compose world. If you haven&#39;t read her article yet, I highly recommend doing so before proceeding. If you&#39;ve already followed her instructions, you&#39;re likely to have created something truly amazing.</p><p>I, too, followed Rebecca’s article and used her guidance to build the animation showcased below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TEdUUyUBCfN94dZ9OlqIzg.gif" /></figure><p>This screen consists of two ImageVectors built with Jetpack Compose, namely, one depicting a clock and the other portraying a lady against a backdrop of plants and butterflies. The SVG of the lady is:</p><pre>&lt;svg width=&quot;360&quot; height=&quot;365&quot; viewBox=&quot;0 0 360 365&quot; fill=&quot;none&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;<br>&lt;path d=&quot;M345.784 333.197C345.784 333.197 364.476 276.763 347.389 253.296C330.302 229.829 316.758 219.473 325.318 200.551C333.88 181.628 330.068 150.697 307.444 141.409C284.82 132.12 295.323 97.1484 270.274 77.0687C245.226 56.9889 224.803 66.0708 212.794 41.3021C202.246 19.5487 180.365 -0.956719 158.467 20.1247C153.666 24.746 150.444 30.7721 148.771 37.2916C147.019 44.1098 140.903 55.9158 120.247 67.7218C88.4683 85.8856 101.068 97.592 88.3048 118.571C75.5403 139.55 34.6215 128.994 19.2683 169.24C3.91599 209.486 37.0506 222.995 34.3622 247.055C31.6738 271.114 15.7568 284.234 25.4532 332.534&quot; stroke=&quot;#E5C2A5&quot; stroke-miterlimit=&quot;10&quot;/&gt;<br>&lt;path d=&quot;M354.817 333.809C354.817 333.809 376.683 271.371 358.247 247.658C339.812 223.945 325.198 213.479 334.434 194.358C343.671 175.238 339.559 143.982 315.148 134.595C290.738 125.209 302.071 89.8707 275.045 69.5795C248.019 49.2893 229.93 51.2287 216.973 26.2007C205.592 4.21901 178.039 -9.2643 154.413 12.038C149.234 16.7081 145.757 22.7972 143.951 29.3852C142.061 36.2749 135.463 48.2049 113.176 60.1349C78.8893 78.4895 92.4835 90.319 78.7117 111.518C64.94 132.717 26.8712 125.447 9.84624 160.954C-9.13882 200.549 20.3499 216.466 17.45 240.778C14.5493 265.09 7.26028 284.39 17.7225 333.197&quot; stroke=&quot;#E5C2A5&quot; stroke-miterlimit=&quot;10&quot;/&gt;<br>&lt;path d=&quot;M161.463 32.7126C156.774 37.3339 153.627 43.36 151.992 49.8794C150.282 56.6976 144.307 68.5036 124.132 80.3096C93.0934 98.4734 105.4 110.18 92.9336 131.159C80.4661 152.138 44.9513 136.044 29.9561 176.29C14.9609 216.536 49.5341 234.703 46.9086 258.762C44.2832 282.821 23.6425 284.233 33.1134 332.533H345.991C345.991 332.533 362.681 289.351 345.991 265.884C329.302 242.417 316.072 232.06 324.434 213.138C332.795 194.216 329.073 163.285 306.975 153.997C284.877 144.708 295.136 109.736 270.671 89.6565C246.205 69.5767 226.258 78.6586 214.528 53.8899C204.223 32.1375 182.851 11.6321 161.463 32.7126Z&quot; fill=&quot;#F7E4D2&quot;/&gt;<br>&lt;path d=&quot;M162.696 44.0252C158.211 48.4454 155.201 54.2103 153.636 60.445C152 66.9663 146.286 78.2592 126.988 89.5512C97.2993 106.925 109.072 118.122 97.1462 138.188C85.2208 158.255 51.2509 142.861 36.9087 181.356C22.5656 219.85 55.6344 237.227 53.1236 260.24C50.6119 283.253 30.8695 284.603 39.9288 330.801H339.194C339.194 330.801 355.157 289.498 339.194 267.052C323.23 244.606 310.577 234.7 318.574 216.601C326.572 198.502 323.012 168.917 301.876 160.032C280.739 151.147 290.553 117.698 267.151 98.4912C243.749 79.2853 224.67 87.9716 213.451 64.2807C203.596 43.4755 183.153 23.8618 162.696 44.0252Z&quot; stroke=&quot;white&quot; stroke-miterlimit=&quot;10&quot;/&gt;<br>&lt;path d=&quot;M278.174 158.08C276.328 157.008 273.904 157.784 273.511 157.183C273.117 156.582 275.498 154.727 276.264 152.78C277.03 150.833 276.168 145.787 273.031 148.163C269.894 150.539 269.752 154.589 269.752 154.589C269.752 154.589 269.701 154.812 269.66 155.183C268.595 152.679 269.168 149.222 269.173 149.184C269.205 148.996 269.08 148.817 268.892 148.784C268.696 148.751 268.525 148.878 268.494 149.066C268.467 149.214 268.011 151.984 268.689 154.48C267.04 152.578 264.636 151.421 264.503 151.359C264.332 151.278 264.125 151.35 264.044 151.523C263.962 151.695 264.035 151.902 264.208 151.983C264.245 152.001 267.666 153.647 269.003 156.122C268.591 155.823 268.302 155.669 268.302 155.669C268.302 155.669 265.146 153.131 261.298 153.956C257.45 154.781 260.706 158.73 262.679 159.421C264.652 160.113 267.611 159.52 267.809 160.211C268.006 160.902 265.835 162.232 265.441 164.332C265.046 166.431 267.513 168.609 268.894 168.705C270.146 168.793 272.037 164.59 272.017 161.45C274.438 163.36 278.51 164.515 279.228 163.555C280.056 162.444 280.021 159.152 278.174 158.08Z&quot; fill=&quot;#DBA291&quot;/&gt;<br>&lt;path d=&quot;M73.9391 190.606C73.5933 188.886 71.7976 187.816 71.9527 187.246C72.1077 186.676 74.5443 187.132 76.1577 186.545C77.7711 185.957 80.405 182.68 77.2364 182.042C74.0679 181.404 71.5007 183.52 71.5007 183.52C71.5007 183.52 71.3363 183.61 71.0854 183.786C72.0457 181.768 74.4823 180.239 74.5095 180.221C74.6429 180.138 74.6843 179.963 74.6016 179.83C74.5152 179.692 74.3441 179.655 74.2116 179.738C74.1064 179.803 72.1547 181.028 70.9895 182.804C71.2611 180.754 70.6635 178.644 70.6296 178.528C70.5864 178.379 70.4285 178.292 70.2782 178.335C70.1278 178.378 70.0414 178.536 70.0856 178.686C70.095 178.718 70.9444 181.721 70.1504 183.891C70.1091 183.474 70.047 183.213 70.047 183.213C70.047 183.213 69.8892 179.888 67.2882 177.967C64.6872 176.048 64.0313 180.201 64.6806 181.792C65.3299 183.383 67.3041 184.883 66.9865 185.381C66.6689 185.879 64.6702 185.265 63.1649 186.165C61.6595 187.064 61.6633 189.769 62.3558 190.671C62.9835 191.488 66.5956 190.367 68.5154 188.645C68.6591 191.175 70.1645 194.31 71.1464 194.23C72.2816 194.139 74.2849 192.327 73.9391 190.606Z&quot; fill=&quot;#DBA291&quot;/&gt;<br>&lt;path d=&quot;M179.586 69.8417C179.24 68.1212 177.445 67.0519 177.6 66.4815C177.755 65.912 180.191 66.3678 181.805 65.7805C183.418 65.1932 186.052 61.9156 182.883 61.2776C179.715 60.6395 177.148 62.7566 177.148 62.7566C177.148 62.7566 176.983 62.8468 176.732 63.0226C177.693 61.0041 180.129 59.4753 180.156 59.4574C180.29 59.3748 180.331 59.2 180.249 59.0665C180.162 58.9284 179.991 58.8918 179.859 58.9745C179.753 59.0393 177.802 60.2646 176.636 62.0406C176.908 59.9902 176.31 57.8797 176.277 57.7651C176.233 57.6157 176.076 57.5283 175.925 57.5715C175.775 57.6148 175.688 57.7726 175.733 57.923C175.742 57.9549 176.591 60.9572 175.797 63.1278C175.756 62.7115 175.694 62.4494 175.694 62.4494C175.694 62.4494 175.536 59.1248 172.935 57.2041C170.334 55.2844 169.678 59.4377 170.328 61.0286C170.977 62.6194 172.951 64.1191 172.634 64.6172C172.316 65.1142 170.317 64.5016 168.812 65.4018C167.307 66.3011 167.31 69.0045 168.003 69.9075C168.631 70.725 172.243 69.604 174.162 67.8816C174.306 70.4121 175.811 73.5468 176.793 73.467C177.929 73.3758 179.932 71.5623 179.586 69.8417Z&quot; fill=&quot;#DBA291&quot;/&gt;<br>&lt;path d=&quot;M131.627 116.499C131.295 116.947 130.662 117.041 130.214 116.709C129.766 116.376 129.672 115.743 130.004 115.294C130.337 114.846 130.97 114.752 131.418 115.085C131.866 115.417 131.96 116.05 131.627 116.499Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M134.234 112.192C133.901 112.64 133.269 112.734 132.821 112.401C132.372 112.069 132.278 111.435 132.611 110.987C132.944 110.539 133.576 110.445 134.024 110.777C134.473 111.11 134.567 111.743 134.234 112.192Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M137.264 118.985C136.932 119.434 136.299 119.528 135.851 119.195C135.403 118.862 135.309 118.229 135.642 117.781C135.974 117.333 136.607 117.239 137.055 117.571C137.504 117.904 137.597 118.537 137.264 118.985Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M267.619 128.346C267.286 128.795 266.654 128.889 266.206 128.556C265.757 128.223 265.663 127.59 265.996 127.142C266.329 126.694 266.961 126.6 267.409 126.932C267.858 127.265 267.952 127.897 267.619 128.346Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M270.226 124.039C269.893 124.487 269.261 124.581 268.812 124.249C268.364 123.916 268.27 123.283 268.603 122.834C268.935 122.386 269.568 122.292 270.016 122.625C270.464 122.957 270.558 123.591 270.226 124.039Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M273.256 130.833C272.923 131.281 272.291 131.375 271.843 131.042C271.395 130.71 271.301 130.076 271.633 129.628C271.966 129.18 272.598 129.086 273.046 129.419C273.495 129.751 273.589 130.385 273.256 130.833Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M219.654 87.3402C219.322 87.7884 218.689 87.8824 218.241 87.5497C217.793 87.2171 217.699 86.5838 218.032 86.1355C218.364 85.6873 218.997 85.5933 219.445 85.926C219.893 86.2577 219.987 86.891 219.654 87.3402Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M222.261 83.0328C221.928 83.481 221.296 83.5749 220.848 83.2423C220.4 82.9097 220.306 82.2763 220.638 81.8281C220.971 81.3799 221.603 81.2859 222.052 81.6186C222.5 81.9512 222.594 82.5845 222.261 83.0328Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M225.292 89.8275C224.959 90.2757 224.327 90.3697 223.878 90.0371C223.43 89.7044 223.336 89.0711 223.669 88.6229C224.001 88.1746 224.634 88.0807 225.082 88.4133C225.53 88.745 225.624 89.3784 225.292 89.8275Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M232.721 146.19C232.29 145.834 232.23 145.197 232.585 144.766C232.94 144.336 233.578 144.275 234.008 144.631C234.438 144.986 234.498 145.624 234.143 146.054C233.788 146.484 233.151 146.545 232.721 146.19Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M236.883 149.018C236.453 148.663 236.393 148.025 236.748 147.595C237.103 147.164 237.74 147.103 238.171 147.459C238.601 147.814 238.661 148.452 238.306 148.883C237.95 149.313 237.314 149.373 236.883 149.018Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M229.946 151.693C229.515 151.338 229.455 150.7 229.81 150.27C230.166 149.839 230.803 149.778 231.233 150.134C231.663 150.49 231.724 151.128 231.368 151.558C231.012 151.988 230.376 152.05 229.946 151.693Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M87.243 167.421C87.243 168.131 86.6679 168.706 85.9585 168.706C85.249 168.706 84.674 168.131 84.674 167.421C84.674 166.711 85.249 166.135 85.9585 166.135C86.6679 166.135 87.243 166.71 87.243 167.421Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M259.39 101.157C259.39 102.039 258.676 102.754 257.795 102.754C256.913 102.754 256.199 102.039 256.199 101.157C256.199 100.276 256.913 99.5606 257.795 99.5606C258.676 99.5606 259.39 100.276 259.39 101.157Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M149.145 150.914C149.145 151.796 148.43 152.511 147.55 152.511C146.669 152.511 145.954 151.796 145.954 150.914C145.954 150.033 146.669 149.318 147.55 149.318C148.43 149.318 149.145 150.033 149.145 150.914Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M179.639 46.662C179.639 47.1995 179.203 47.6355 178.665 47.6355C178.128 47.6355 177.692 47.1995 177.692 46.662C177.692 46.1245 178.128 45.6885 178.665 45.6885C179.203 45.6885 179.639 46.1245 179.639 46.662Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M254.095 189.694C254.095 190.493 253.448 191.142 252.648 191.142C251.849 191.142 251.201 190.493 251.201 189.694C251.201 188.894 251.848 188.246 252.648 188.246C253.448 188.246 254.095 188.894 254.095 189.694Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M159.194 79.5701C159.194 80.3697 158.547 81.0181 157.747 81.0181C156.949 81.0181 156.3 80.3697 156.3 79.5701C156.3 78.7704 156.948 78.1221 157.747 78.1221C158.547 78.1221 159.194 78.7704 159.194 79.5701Z&quot; fill=&quot;white&quot;/&gt;<br>&lt;path d=&quot;M-0.30595 322.039H385.968C388.813 322.039 389.595 325.957 386.963 327.038C361.127 337.652 292.612 361.697 196.589 364.443C107.297 366.996 32.6943 343.758 -1.88365 330.64C-6.50494 328.888 -5.24767 322.039 -0.30595 322.039Z&quot; fill=&quot;#F7E4D2&quot;/&gt;<br>&lt;path d=&quot;M128.444 241.126C127.59 225.868 111.599 222.801 110 219.004C108.402 215.207 105.819 207.44 94.3055 203.777C82.7918 200.115 75.6277 206.885 69.176 202.739C62.7242 198.593 56.9828 195.165 49.2926 200.38C41.6023 205.594 36.1532 203.677 25.051 202.42C13.9488 201.162 5.13192 211.87 5.13192 211.87C0.789716 215.853 4.97875 220.897 15.2155 223.371C29.6704 226.865 25.5425 236.253 33.2477 240.058C40.953 243.863 50.1101 240.093 55.9173 244.697C61.7235 249.302 61.2856 257.651 68.4722 259.612C75.6588 261.572 84.1364 256.799 88.2484 259.624C92.3604 262.448 94.6006 270.818 99.5075 273.708C104.415 276.599 118.304 277.314 118.304 277.314L121.658 276.503C121.658 276.503 129.298 256.385 128.444 241.126Z&quot; fill=&quot;#B9BC7E&quot;/&gt;<br>&lt;path d=&quot;M119.38 271.702C119.38 271.702 115.755 240.556 94.3356 226.369C72.9159 212.182 37.7873 211.844 27.138 211.255C16.4888 210.667 16.4888 210.667 16.4888 210.667C16.4888 210.667 59.4777 207.933 80.7931 216.602C110.068 228.508 118.408 247.957 119.38 271.702Z&quot; fill=&quot;#FFFBF4&quot;/&gt;<br>&lt;path d=&quot;M103.662 238.915C103.662 238.915 85.7508 222.915 83.053 209.597C80.3552 196.28 88.2719 191.305 82.9421 184.563C77.6123 177.821 79.9944 165.722 85.732 162.651C91.4696 159.581 93.8197 152.879 94.3816 143.615C94.9436 134.351 102.005 130.904 104.193 133.474C110.216 140.551 107.221 147.787 116.435 152.288C125.648 156.79 128.915 166.113 126.604 173.746C124.292 181.379 134.452 183.815 141.18 195.468C147.908 207.121 143.034 216.863 140.18 224.172C137.325 231.481 145.236 240.286 142.364 248.711C139.492 257.136 119.671 271.006 119.671 271.006C119.671 271.006 110.081 267.463 103.662 238.915Z&quot; fill=&quot;#CFC293&quot;/&gt;<br>&lt;path d=&quot;M103.481 146.372C103.481 146.372 109.396 169.178 116.518 198.578C123.64 227.979 124.839 264.239 124.839 264.239C124.839 264.239 128.962 237.924 123.62 213.229C118.278 188.534 103.932 150.173 103.481 146.372Z&quot; fill=&quot;#FFFBF4&quot;/&gt;<br>&lt;path d=&quot;M106.065 250.818C103.623 238.288 115.94 232.52 116.454 229.117C116.968 225.715 117.465 218.896 126.034 213.565C134.604 208.234 141.795 212.244 146.168 207.562C150.54 202.88 154.485 198.925 161.782 201.567C169.08 204.21 173.098 201.538 181.829 198.239C190.56 194.941 199.898 201.799 199.898 201.799C204.232 204.133 201.877 209.077 194.096 213.184C183.111 218.981 188.381 225.735 182.924 230.398C177.467 235.062 169.278 233.89 165.522 238.811C161.766 243.731 163.836 250.403 158.421 253.466C153.005 256.529 145.16 254.407 142.412 257.538C139.663 260.669 139.568 267.906 136.188 271.255C132.808 274.603 121.71 278.035 121.71 278.035L118.827 278.068C118.827 278.068 108.509 263.348 106.065 250.818Z&quot; fill=&quot;#B9BC7E&quot;/&gt;<br>&lt;path d=&quot;M119.686 273.713C119.686 273.713 116.222 247.75 130.651 231.863C145.08 215.976 173.453 208.486 181.954 205.822C190.455 203.158 190.455 203.158 190.455 203.158C190.455 203.158 155.086 209.775 139.609 221.173C118.353 236.826 115.595 254.287 119.686 273.713Z&quot; fill=&quot;#FFFBF4&quot;/&gt;<br>&lt;path d=&quot;M111.216 273.668C111.216 273.668 87.617 267.207 75.2265 272.874C62.836 278.541 60.5498 286.329 60.5498 286.329C60.5498 286.329 65.8561 288.185 75.9472 286.772C86.0392 285.358 87.5512 279.379 94.5874 282.223C101.624 285.066 103.933 287.805 109.857 286.108C115.781 284.411 118.825 278.069 118.825 278.069L111.216 273.668Z&quot; fill=&quot;#9A9B82&quot;/&gt;<br>&lt;path d=&quot;M122.835 274.514C122.835 274.514 129.18 267.199 138.384 267.686C147.589 268.173 149.206 271.382 153.715 271.587C158.225 271.792 160.716 270.369 166.871 272.471C172.963 274.551 176.565 277.401 176.565 277.401C176.565 277.401 170.307 286.46 160.563 284.114C150.82 281.769 143.448 280.256 140.261 283.521C137.074 286.787 117.055 280.836 117.055 280.836L122.835 274.514Z&quot; fill=&quot;#9A9B82&quot;/&gt;<br>&lt;path d=&quot;M259.43 245.467C259.43 245.467 272.696 253.977 299.979 258.733C327.263 263.489 338.777 255.729 340.279 252.1C341.78 248.47 337.275 246.468 319.504 243.214C301.732 239.96 296.976 235.955 305.737 234.955C314.497 233.954 326.763 241.713 337.276 241.713C347.789 241.713 355.048 236.123 355.298 232.284C355.548 228.447 323.759 227.445 319.754 221.938C315.749 216.432 340.362 222.188 350.959 223.691C361.556 225.192 365.811 216.933 365.06 214.18C364.309 211.426 338.527 210.534 336.024 206.724C333.521 202.916 346.787 204.275 358.302 206.724C369.815 209.173 375.573 200.662 374.071 198.66C372.57 196.658 351.294 195.156 349.04 191.401C346.787 187.646 360.554 188.648 367.563 190.149C374.572 191.651 382.081 184.893 379.578 182.641C377.074 180.388 361.305 179.636 360.805 176.382C360.304 173.128 381.814 174.881 380.07 170.125C378.326 165.369 372.319 160.919 363.057 160.766C353.796 160.614 345.285 170.375 340.28 167.372C335.273 164.368 352.544 157.109 348.04 154.356C343.534 151.602 333.522 153.104 330.018 157.86C326.514 162.615 326.263 170.625 322.509 170.375C318.754 170.125 325.262 158.861 322.008 156.358C318.754 153.855 310.243 159.111 308.492 164.118C306.739 169.123 308.742 179.136 305.238 179.636C301.734 180.137 306.081 163.617 303.03 162.115C299.981 160.614 290.219 170.375 289.969 176.383C289.719 182.391 292.973 191.854 287.717 193.38C282.46 194.906 283.462 176.132 279.457 174.381C275.452 172.628 267.442 184.11 268.694 193.512C269.946 202.916 272.699 210.609 268.944 210.642C265.189 210.675 262.436 198.66 259.433 196.658C256.428 194.655 253.723 199.662 252.949 212.427C252.171 225.192 258.193 242.338 259.43 245.467Z&quot; fill=&quot;#D1C795&quot;/&gt;<br>&lt;path d=&quot;M255.148 266.03C255.148 266.03 269.208 229.962 285.564 209.976C301.92 189.991 333.483 177.938 348.692 177.078C348.692 177.078 312.713 183.766 289.581 212.372C266.449 240.977 257.73 280.091 257.73 280.091L251.417 278.849L255.148 266.03Z&quot; fill=&quot;#FFFBF4&quot;/&gt;<br>&lt;path d=&quot;M0.391296 319.004C0.391296 319.004 2.39937 311.522 12.2546 308.053C22.1099 304.586 23.5701 313.893 29.7757 313.529C35.9812 313.164 38.8632 325.21 38.8632 325.21H-1.79907L0.391296 319.004Z&quot; fill=&quot;#9A9B82&quot;/&gt;<br>&lt;path d=&quot;M24.2204 324.777C23.649 321.939 22.7733 318.74 21.6842 315.321C23.4686 311.855 28.5203 300.85 28.3991 287.529C28.2516 271.361 17.046 254.405 17.046 254.405C17.046 254.405 14.103 282.069 18.9798 307.516C15.6055 298.409 11.2793 288.53 7.27157 279.896C8.97707 276.325 12.0441 268.641 12.0207 259.528C11.9878 246.923 3.33812 233.649 3.33812 233.649C3.33812 233.649 1.0162 254.178 4.32007 273.63C1.36669 267.451 -1.18169 262.371 -2.72368 259.345C-2.99525 255.078 -4.04956 247.597 -7.92757 240.257C-13.8165 229.113 -27.6456 221.38 -27.6456 221.38C-27.6456 221.38 -18.9386 243.77 -5.29838 259.93C-4.06459 262.353 -1.99169 266.478 0.490917 271.611C-1.40346 268.833 -3.82404 265.876 -6.87045 263.193C-16.3273 254.86 -32 252.531 -32 252.531C-32 252.531 -14.1876 272.302 5.49372 282.205C7.5375 286.64 9.64517 291.362 11.6542 296.112C9.38113 293.023 6.59407 289.829 3.22348 286.899C-8.97624 276.288 -29.0992 273.432 -29.0992 273.432C-29.0992 273.432 -7.30833 297.307 17.202 310.147C19.2298 315.75 20.8451 320.973 21.7133 325.282L24.2204 324.777Z&quot; fill=&quot;#B9BC7E&quot;/&gt;<br>&lt;path d=&quot;M345.801 317.144H358.181C358.181 317.144 363.781 306.828 377.338 299.754C390.896 292.68 392.369 284.148 392.96 280.162C393.549 276.176 387.654 278.239 378.812 283.544C369.97 288.849 367.612 301.409 363.78 301.171C359.949 300.933 362.307 286.495 370.559 281.777C378.811 277.06 385.296 265.565 387.358 258.197C389.422 250.829 372.621 256.134 364.663 264.976C356.705 273.818 357.885 295.412 351.99 298.173C346.095 300.933 356.411 282.807 344.475 275.413C339.688 272.448 338.431 280.927 339.905 291.667C341.381 302.407 348.749 307.417 345.801 317.144Z&quot; fill=&quot;#9A9B82&quot;/&gt;<br>&lt;path d=&quot;M324.953 323.553C324.953 323.553 346.689 325.92 363.476 325.92C380.262 325.92 386.718 324.414 386.718 324.414C386.718 324.414 383.06 317.527 372.299 314.945C361.539 312.363 360.463 318.818 355.728 314.945C350.993 311.072 342.385 308.273 334.853 310.425C327.32 312.577 324.953 323.553 324.953 323.553Z&quot; fill=&quot;#D7CA8C&quot;/&gt;<br>&lt;path d=&quot;M186.556 343.338C258.335 343.338 316.524 338.57 316.524 332.689C316.524 326.807 258.335 322.039 186.556 322.039C114.776 322.039 56.5873 326.807 56.5873 332.689C56.5873 338.57 114.776 343.338 186.556 343.338Z&quot; fill=&quot;#E2C9B5&quot;/&gt;<br>&lt;path d=&quot;M307.481 273.927L297.609 284.336C297.609 284.336 297.609 284.346 297.598 284.367L295.741 286.317C295.731 286.327 295.721 286.327 295.721 286.327L295.607 286.451C295.597 286.441 295.576 286.431 295.566 286.42C274.253 273.237 253.694 253.596 248.516 248.531C245.854 246.138 243.358 243.27 241.418 239.846C236.869 231.789 230.721 216.749 226.44 205.732L225.872 208.125L218.156 240.815C221.457 245.88 225.975 253.638 229.843 263.21C231.803 268.069 233.598 273.402 234.981 279.076L190.634 305.164L190.644 305.824L190.046 305.505L189.457 305.845L189.447 305.184L144.13 280.819C145.595 273.639 147.729 266.985 150.041 261.116C150.082 261.023 150.113 260.92 150.155 260.827C153.311 252.905 156.809 246.417 159.48 241.939L150.372 209.053L149.145 204.627L148.484 202.244C144.151 213.003 136.167 232.18 130.596 241.608C128.595 244.992 126.058 247.808 123.334 250.15C118.073 255.111 97.1011 274.381 75.5413 287.173L73.5708 285.017L63.9054 274.424L113.049 228.219L129.658 180.736C139.221 160.218 146.39 159.929 146.39 159.929V159.939C147.71 158.825 149.216 157.886 150.907 157.226C151.454 157.009 152.012 156.793 152.578 156.555L152.589 156.545C155.828 155.214 159.458 153.513 163.09 151.377C167.371 148.849 171.663 145.703 175.335 141.814C175.872 138.162 176.067 132.963 176.139 129.59C176.181 127.578 176.181 126.206 176.181 126.206L186.631 127.279L197.029 125.804C197.029 125.804 197.122 128.516 197.369 131.921C197.607 134.984 197.947 138.616 198.463 141.37C200.165 143.041 201.991 144.568 203.878 145.929C210.429 150.747 217.732 153.841 223.468 155.833C224.953 156.348 226.305 157.07 227.532 157.937C229.028 158.309 235.506 160.909 243.521 179.012L259.222 226.795L307.481 273.927Z&quot; fill=&quot;#5E4453&quot;/&gt;<br>&lt;path d=&quot;M203.88 145.93C202.199 147.818 197.052 151.872 182.465 155.225C162.742 159.753 152.581 156.555 152.581 156.555L152.591 156.545C155.83 155.214 159.461 153.513 163.093 151.377C167.374 148.849 171.666 145.703 175.338 141.814C175.875 138.162 176.07 132.963 176.142 129.59L197.372 131.921C197.61 134.984 197.95 138.616 198.466 141.37C200.167 143.042 201.993 144.569 203.88 145.93Z&quot; fill=&quot;#3F2935&quot;/&gt;<br>&lt;path d=&quot;M214.986 216.454C208.065 219.518 195.968 213.581 185.694 216.892C175.42 220.214 170.334 229.715 168.343 241.877C166.352 254.029 171.437 271.699 171.437 271.699C171.437 271.699 162.257 274.248 150.156 260.826C153.312 252.904 156.809 246.416 159.481 241.938L149.145 204.627L148.484 202.244C148.484 202.244 146.018 189.483 152.208 179.756C152.208 179.756 150.279 190.154 153.9 199.655C157.51 209.156 166.031 209.156 174.923 208.939C183.816 208.722 183.692 205.672 193.739 207.835C210.499 211.444 217.049 209.823 220.958 204.319C223.536 200.689 221.898 213.39 214.986 216.454Z&quot; fill=&quot;#3F2935&quot;/&gt;<br>&lt;path d=&quot;M167.292 114.917C167.292 114.917 164.911 110.061 161.778 110.252C158.646 110.443 157.598 117.129 162.011 122.336C166.423 127.545 170.432 125.311 170.432 125.311L167.292 114.917Z&quot; fill=&quot;#EA8D78&quot;/&gt;<br>&lt;path d=&quot;M206.581 114.163C206.581 114.163 208.773 109.22 211.911 109.291C215.048 109.361 216.353 116.002 212.143 121.375C207.933 126.749 203.842 124.671 203.842 124.671L206.581 114.163Z&quot; fill=&quot;#EA8D78&quot;/&gt;<br>&lt;path d=&quot;M207.99 104.138C208.363 123.538 196.803 140.881 187.593 141.057C176.423 141.272 165.618 123.052 165.271 104.958C165.015 91.5743 173.043 80.5661 186.427 80.3087C199.811 80.0521 207.733 90.754 207.99 104.138Z&quot; fill=&quot;#FFA488&quot;/&gt;<br>&lt;path d=&quot;M170.059 105.928C170.059 105.928 173.201 105.031 176.601 104.783C180.862 104.471 182.433 104.916 182.433 104.916C182.433 104.916 181.613 102.526 178.026 102.595C174.441 102.664 170.059 105.928 170.059 105.928Z&quot; fill=&quot;#2F2A00&quot;/&gt;<br>&lt;path d=&quot;M182.216 111.167C182.216 111.167 179.701 107.785 176.465 107.749C173.23 107.713 170.36 111.395 170.36 111.395C170.36 111.395 171.244 112.365 175.84 112.564C180.547 112.768 182.216 111.167 182.216 111.167Z&quot; fill=&quot;#EA8D78&quot;/&gt;<br>&lt;path d=&quot;M176.378 112.292C173.329 112.321 170.849 111.555 170.43 111.417L170.385 111.394C170.382 111.396 170.378 111.398 170.375 111.399C170.37 111.398 170.36 111.395 170.36 111.395C170.362 111.397 170.367 111.4 170.37 111.402C169.834 111.747 168.734 111.839 168.734 111.839C169.868 112.193 170.767 112.075 171.17 111.987C172.049 112.584 173.607 113.368 176.397 113.337C180.404 113.293 182.214 111.167 182.214 111.167C182.214 111.167 179.725 112.26 176.378 112.292Z&quot; fill=&quot;#2F2A00&quot;/&gt;<br>&lt;path d=&quot;M203.033 105.295C203.033 105.295 199.859 104.52 196.452 104.403C192.181 104.255 190.629 104.759 190.629 104.759C190.629 104.759 191.357 102.339 194.943 102.271C198.529 102.201 203.033 105.295 203.033 105.295Z&quot; fill=&quot;#2F2A00&quot;/&gt;<br>&lt;path d=&quot;M191.086 110.997C191.086 110.997 193.47 107.521 196.701 107.361C199.933 107.2 202.942 110.77 202.942 110.77C202.942 110.77 202.096 111.773 197.511 112.148C192.814 112.532 191.086 110.997 191.086 110.997Z&quot; fill=&quot;#EA8D78&quot;/&gt;<br>&lt;path d=&quot;M204.582 111.15C204.582 111.15 203.479 111.101 202.931 110.776C202.934 110.775 202.938 110.771 202.942 110.769C202.942 110.769 202.932 110.773 202.928 110.775C202.925 110.773 202.92 110.772 202.917 110.77L202.873 110.795C202.459 110.948 200.01 111.809 196.963 111.897C193.616 111.994 191.086 110.997 191.086 110.997C191.086 110.997 192.977 113.052 196.983 112.942C199.772 112.866 201.299 112.022 202.155 111.392C202.559 111.464 203.462 111.548 204.582 111.15Z&quot; fill=&quot;#2F2A00&quot;/&gt;<br>&lt;path d=&quot;M183.877 122.8C183.877 122.8 185.595 123.844 187.002 123.916C188.409 123.987 190.082 122.68 190.082 122.68C190.082 122.68 188.772 122.543 187.204 122.507C185.635 122.472 183.877 122.8 183.877 122.8Z&quot; fill=&quot;#EA8D78&quot;/&gt;<br>&lt;path d=&quot;M187.751 128.812C191.224 128.603 193.429 127.51 193.429 127.51C193.429 127.51 189.713 127.112 188.761 127.298C188.17 127.413 187.757 127.978 187.53 128.39C187.287 127.987 186.854 127.438 186.259 127.346C185.3 127.196 181.603 127.737 181.603 127.737C181.603 127.737 183.849 128.745 187.327 128.821C187.326 128.824 187.321 128.837 187.321 128.837C187.395 128.834 187.465 128.828 187.539 128.825C187.612 128.826 187.682 128.828 187.757 128.828C187.757 128.828 187.753 128.815 187.751 128.812Z&quot; fill=&quot;#743F3D&quot;/&gt;<br>&lt;path d=&quot;M182.668 129.218C182.668 129.218 183.399 130.258 186.107 130.916C188.816 131.575 190.779 130.459 192.401 129.423C192.401 129.423 190.935 132.221 187.88 132.597C184.824 132.975 182.774 129.633 182.668 129.218Z&quot; fill=&quot;#EA8D78&quot;/&gt;<br>&lt;path d=&quot;M195.012 91.8083C195.012 91.8083 190.358 89.3492 184.091 89.6659C177.824 89.9825 172.956 94.8782 171.141 98.3437C169.327 101.809 167.484 102.798 167.484 102.798C167.484 102.798 168.058 111.2 166.451 114.781C166.451 114.781 164.28 111.152 161.779 110.253C161.779 110.253 159.639 102.583 160.953 94.4225C162.266 86.2614 170.919 77.4699 182.56 76.2662C194.201 75.0625 200.093 80.7324 200.093 80.7324C200.093 80.7324 207.822 85.0925 210.121 92.498C212.419 99.9036 210.448 109.515 210.448 109.515C210.448 109.515 208.458 110.523 207.177 113.999C207.177 113.999 203.453 108.379 204.41 102.088C204.408 102.088 202.884 92.0817 195.012 91.8083Z&quot; fill=&quot;#743F3D&quot;/&gt;<br>&lt;path d=&quot;M201.933 84.9093C199.6 85.6478 184.54 77.4972 184.54 77.4972C184.54 77.4972 184.461 76.1779 184.885 74.4752C185.476 72.1223 187.011 69.0223 191.017 67.5752C191.706 67.329 192.385 67.1524 193.045 67.034C199.079 66.0107 204.089 70.1443 205.527 74.3577C207.12 79.0335 204.276 84.181 201.933 84.9093Z&quot; fill=&quot;#743F3D&quot;/&gt;<br>&lt;path d=&quot;M182.433 104.916C182.433 104.916 183.894 107.65 184.715 111.802C185.536 115.954 184.852 118.932 184.852 118.932C184.852 118.932 184.049 107.188 178.071 104.699C178.071 104.699 181.349 104.628 182.433 104.916Z&quot; fill=&quot;#EA8D78&quot;/&gt;<br>&lt;path d=&quot;M195.012 91.8083C195.012 91.8083 187.577 89.3201 181.247 92.0724C174.918 94.8247 175.069 98.8417 170.672 99.1819L170.106 98.1304C170.106 98.1304 171.278 98.355 173.956 96.2445C176.633 94.1331 182.281 86.5387 195.012 91.8083Z&quot; fill=&quot;#743F3D&quot;/&gt;<br>&lt;path d=&quot;M164.77 313.741C164.77 313.741 158.69 314.516 156.57 314.928C156.57 314.928 148.077 313.711 144.509 313.862C140.94 314.014 138.99 318.261 136.974 322.87C134.958 327.479 127.148 332.39 124.388 335.26C121.629 338.13 121.555 342.341 121.615 343.232C121.675 344.123 119.878 346.66 120.823 348.743C121.768 350.826 122.795 350.131 123.674 349.893C124.553 349.655 125.169 348.182 125.169 348.182C125.169 348.182 127.414 348.299 128.37 347.877C129.325 347.455 128.506 347.241 130.644 347.097C132.781 346.953 133.927 346.696 135.233 346.161C136.539 345.625 145.487 336.343 150.331 333.87C155.175 331.396 162.642 331.967 162.642 331.967L164.77 313.741Z&quot; fill=&quot;#FFA488&quot;/&gt;<br>&lt;path d=&quot;M302.076 320.049C287.634 328.127 263.712 331.304 236.025 332.985C232.651 333.191 229.227 333.376 225.75 333.542L226.225 345.549C226.225 345.549 224.12 345.528 220.396 345.477C208.976 345.342 182.352 345.002 154.592 344.445C109.698 343.558 73.9853 332.417 63.6696 322.483C58.6978 317.686 55.7472 310.042 56.7997 302.904C57.635 297.251 60.9878 291.917 67.8267 288.545C69.457 287.74 72.3033 286.719 76.1512 285.625C88.2203 282.169 110.059 277.991 134.146 277.765C134.527 277.734 134.888 277.713 135.239 277.682C138.416 272.916 150.156 260.827 150.156 260.827C150.156 260.827 158.408 267.769 169.693 271.895C175.656 274.071 182.475 275.474 189.365 274.639C209.296 272.235 229.318 261.125 229.318 261.125C233.372 265.159 237.251 274.628 237.251 274.628C257.202 274.814 290.242 280.87 297.35 284.428C297.402 284.459 297.443 284.49 297.484 284.511C302.313 285.81 306.335 288.616 309.089 292.186C315.475 300.449 315.053 312.807 302.076 320.049Z&quot; fill=&quot;#E9835B&quot;/&gt;<br>&lt;path d=&quot;M63.9017 274.422C63.9017 274.422 58.8801 273.655 56.8673 273.693C54.8536 273.732 50.7923 275.018 48.4986 275.407C46.2039 275.796 45.0547 275.876 45.1186 276.22C45.1825 276.564 45.9474 277.413 48.4864 277.767C51.0254 278.121 53.197 277.446 54.5501 277.42C55.9032 277.394 56.2058 278.194 56.2058 278.194C56.2058 278.194 54.8376 281.846 50.4212 282.621C46.0047 283.396 44.2663 282.74 43.9666 282.112C43.6668 281.485 45.5405 277.19 45.05 275.589C44.5586 273.987 43.8134 274.116 42.8841 276.667C41.9548 279.217 40.3329 281.665 40.3648 283.333C40.3968 285 43.244 286.443 43.244 286.443C43.244 286.443 37.7648 285.8 36.1251 287.327C34.4853 288.855 37.7667 288.907 40.3611 289.145C42.9555 289.383 45.3864 290.142 46.9369 289.939C46.9369 289.939 39.9721 289.843 38.6124 290.963C37.2527 292.082 40.0294 292.834 42.6755 292.784C45.3216 292.733 48.8999 293.298 49.4759 293.286C49.4759 293.286 43.275 294.038 43.478 295.589C43.68 297.138 44.8114 296.081 48.213 296.418C51.6146 296.756 54.4336 296.702 57.6369 295.719C60.8402 294.737 73.5737 285.015 73.5737 285.015L63.9017 274.422Z&quot; fill=&quot;#FFA488&quot;/&gt;<br>&lt;path d=&quot;M278.432 289.617C251.9 293.382 177.627 312.395 177.627 312.395C177.627 312.395 138.499 294.486 112.266 290.288C87.3539 286.307 72.8191 288.286 76.1512 285.625C88.2203 282.169 110.059 277.991 134.146 277.765C134.527 277.734 134.888 277.713 135.239 277.682C138.416 272.916 150.156 260.827 150.156 260.827C150.156 260.827 158.408 267.769 169.693 271.895C170.601 276.269 186.25 297.798 197.525 294.259C208.8 290.731 223.603 285.862 230.68 288.297C237.756 290.731 252.126 289.401 262.029 287.172C271.923 284.944 278.432 289.617 278.432 289.617Z&quot; fill=&quot;#CC6A4C&quot;/&gt;<br>&lt;path d=&quot;M297.609 284.336C297.609 284.336 297.609 284.346 297.599 284.367C297.506 284.563 297.032 285.523 295.742 286.317C295.732 286.327 295.722 286.327 295.722 286.327C295.67 286.358 295.618 286.389 295.567 286.42C274.254 273.237 253.695 253.596 248.516 248.531C245.855 246.138 243.359 243.27 241.419 239.846C236.87 231.789 230.722 216.749 226.441 205.732L228.907 185.214C228.907 185.214 238.118 224.919 247.847 237.711C257.574 250.5 297.609 284.336 297.609 284.336Z&quot; fill=&quot;#3F2935&quot;/&gt;<br>&lt;path d=&quot;M150.373 209.052L149.146 204.626L148.485 202.243C144.152 213.002 136.168 232.179 130.597 241.607C128.596 244.991 126.059 247.807 123.335 250.149C118.074 255.11 97.102 274.38 75.5423 287.172L73.5718 285.016C73.5718 285.016 116.041 248.746 128.513 234.48C140.974 220.213 148.639 189.102 148.639 189.102L150.373 209.052Z&quot; fill=&quot;#3F2935&quot;/&gt;<br>&lt;path d=&quot;M302.076 320.049C287.634 328.127 263.712 331.304 236.025 332.985C224.451 331.086 216.187 326.579 216.187 326.579V325.207L177.658 312.405C177.985 312.486 184.316 310.7 184.316 310.7C201.86 314.608 245.09 326.391 267.6 321.235C296.556 314.602 297.66 302.419 302.963 296.353C305.037 293.981 307.213 292.774 309.09 292.186C315.475 300.449 315.053 312.807 302.076 320.049Z&quot; fill=&quot;#CC6A4C&quot;/&gt;<br>&lt;path d=&quot;M216.191 326.575C216.191 326.575 222.256 327.469 224.367 327.922C224.367 327.922 232.881 326.871 236.446 327.092C240.012 327.313 241.879 331.598 243.803 336.245C245.728 340.893 253.441 345.956 256.144 348.879C258.846 351.802 258.838 356.013 258.761 356.903C258.684 357.792 260.431 360.364 259.445 362.428C258.458 364.493 257.445 363.778 256.571 363.522C255.697 363.266 255.11 361.782 255.11 361.782C255.11 361.782 252.863 361.855 251.916 361.414C250.969 360.974 251.792 360.776 249.658 360.59C247.524 360.404 246.383 360.126 245.088 359.565C243.793 359.004 235.028 349.549 230.233 346.981C225.439 344.413 217.961 344.838 217.961 344.838L216.191 326.575Z&quot; fill=&quot;#FFA488&quot;/&gt;<br>&lt;path d=&quot;M307.483 273.93C307.483 273.93 312.517 273.259 314.53 273.336C316.543 273.413 320.578 274.777 322.865 275.21C325.151 275.643 326.299 275.745 326.228 276.088C326.158 276.431 325.377 277.264 322.832 277.569C320.287 277.875 318.128 277.159 316.777 277.107C315.425 277.055 315.106 277.85 315.106 277.85C315.106 277.85 316.405 281.526 320.805 282.386C325.206 283.246 326.957 282.622 327.269 282C327.581 281.379 325.789 277.049 326.311 275.457C326.832 273.865 327.575 274.008 328.456 276.575C329.336 279.143 330.911 281.621 330.847 283.288C330.784 284.955 327.909 286.342 327.909 286.342C327.909 286.342 333.4 285.804 335.009 287.363C336.62 288.922 333.338 288.911 330.739 289.099C328.141 289.287 325.695 290 324.149 289.768C324.149 289.768 331.115 289.805 332.453 290.95C333.791 292.096 331.001 292.795 328.356 292.693C325.711 292.592 322.123 293.088 321.548 293.066C321.548 293.066 327.732 293.936 327.501 295.481C327.269 297.027 326.159 295.948 322.751 296.221C319.344 296.493 316.527 296.385 313.342 295.342C310.158 294.299 297.612 284.336 297.612 284.336L307.483 273.93Z&quot; fill=&quot;#FFA488&quot;/&gt;<br>&lt;path d=&quot;M220.396 345.477C208.976 345.342 182.352 345.002 154.592 344.445C109.698 343.558 73.9853 332.417 63.6696 322.483C58.6978 317.686 55.7472 310.042 56.7997 302.904C60.5959 305.854 67.93 310.992 81.9179 317.986C104.901 329.488 147.34 335.677 180.949 338.917C214.547 342.156 217.569 340.732 217.569 340.732L220.396 345.477Z&quot; fill=&quot;#CC6A4C&quot;/&gt;<br>&lt;path d=&quot;M196.835 79.6828C192.297 77.468 185.122 76.1093 185.122 76.1093C185.003 75.538 184.924 74.9873 184.886 74.4752C185.477 72.1223 187.012 69.0223 191.018 67.5752C191.707 67.329 192.386 67.1524 193.046 67.034C192.289 67.812 191.5 69.2582 192.19 71.6703C193.36 75.7654 201.362 81.8976 196.835 79.6828Z&quot; fill=&quot;#603030&quot;/&gt;<br>&lt;path d=&quot;M192.609 88.121C192.609 88.121 184.246 84.9572 176.247 88.121C168.247 91.2849 167.134 99.8274 165.265 100.671C165.265 100.671 166.885 89.2111 175.476 86.7153C184.066 84.2195 192.609 88.121 192.609 88.121Z&quot; fill=&quot;#603030&quot;/&gt;<br>&lt;path d=&quot;M198.937 82.8485L195.773 89.9816C195.773 89.9816 200.096 88.0158 198.937 82.8485Z&quot; fill=&quot;#603030&quot;/&gt;<br>&lt;/svg&gt;</pre><p>If you found this SVG overwhelming, don’t worry. You just need to read the article mentioned at the beginning. All the elements in the SVG are essentially commands and coordinates. As you can observe, this SVG doesn’t contain any groups or classes that can identify themselves. Therefore, the most challenging aspect of creating an animation for this SVG was identifying the paths responsible for the lady, background, butterflies, and even the subtle blinking white circles in the background. If you haven’t noticed, these circles also blink in synchronization with the other animations.</p><p>In her article titled “Making Jellyfish Move in Compose: Animating ImageVectors and Applying AGSL RenderEffects,” Rebecca elaborates on how to identify these paths and elements within an SVG for effective animation.</p><blockquote>The best way to figure out what an SVG is drawing, is to comment out various parts of it and see the visual result of what each section of the svg renders. To do this, you can either change it in the codepen linked above, or download and open an SVG in a text editor (it’s a text readable format).</blockquote><p>I diligently followed Rebecca’s instructions, and after four hours of focused hard work, I successfully deciphered which path corresponds to each element in the SVG. It was a gratifying experience to see the pieces come together, unveiling the intricate details of svg.</p><pre>object LadyMeditating {<br>    val middleBackground = PathParser().parsePathString(<br>            &quot;M345.784 333.197C345.784 333.197 364.476 276.763 347.389 253.296C330.302 229.829 316.758 219.473 325.318 200.551C333.88 181.628 330.068 150.697 307.444 141.409C284.82 132.12 295.323 97.1484 270.274 77.0687C245.226 56.9889 224.803 66.0708 212.794 41.3021C202.246 19.5487 180.365 -0.956719 158.467 20.1247C153.666 24.746 150.444 30.7721 148.771 37.2916C147.019 44.1098 140.903 55.9158 120.247 67.7218C88.4683 85.8856 101.068 97.592 88.3048 118.571C75.5403 139.55 34.6215 128.994 19.2683 169.24C3.91599 209.486 37.0506 222.995 34.3622 247.055C31.6738 271.114 15.7568 284.234 25.4532 332.534&quot;).toNodes()<br><br>    val outerBackgroundPath = PathParser().parsePathString(<br>            &quot;M354.817 333.809C354.817 333.809 376.683 271.371 358.247 247.658C339.812 223.945 325.198 213.479 334.434 194.358C343.671 175.238 339.559 143.982 315.148 134.595C290.738 125.209 302.071 89.8707 275.045 69.5795C248.019 49.2893 229.93 51.2287 216.973 26.2007C205.592 4.21901 178.039 -9.2643 154.413 12.038C149.234 16.7081 145.757 22.7972 143.951 29.3852C142.061 36.2749 135.463 48.2049 113.176 60.1349C78.8893 78.4895 92.4835 90.319 78.7117 111.518C64.94 132.717 26.8712 125.447 9.84624 160.954C-9.13882 200.549 20.3499 216.466 17.45 240.778C14.5493 265.09 7.26028 284.39 17.7225 333.197&quot;<br>    ).toNodes()<br>    val solidBackgroundCreamColor = PathParser().parsePathString(<br>            &quot;M161.463 32.7126C156.774 37.3339 153.627 43.36 151.992 49.8794C150.282 56.6976 144.307 68.5036 124.132 80.3096C93.0934 98.4734 105.4 110.18 92.9336 131.159C80.4661 152.138 44.9513 136.044 29.9561 176.29C14.9609 216.536 49.5341 234.703 46.9086 258.762C44.2832 282.821 23.6425 284.233 33.1134 332.533H345.991C345.991 332.533 362.681 289.351 345.991 265.884C329.302 242.417 316.072 232.06 324.434 213.138C332.795 194.216 329.073 163.285 306.975 153.997C284.877 144.708 295.136 109.736 270.671 89.6565C246.205 69.5767 226.258 78.6586 214.528 53.8899C204.223 32.1375 182.851 11.6321 161.463 32.7126Z&quot;<br>    ).toNodes()<br>    val Torso = PathParser().parsePathString(<br>            &quot;M307.481 273.927L297.609 284.336C297.609 284.336 297.609 284.346 297.598 284.367L295.741 286.317C295.731 286.327 295.721 286.327 295.721 286.327L295.607 286.451C295.597 286.441 295.576 286.431 295.566 286.42C274.253 273.237 253.694 253.596 248.516 248.531C245.854 246.138 243.358 243.27 241.418 239.846C236.869 231.789 230.721 216.749 226.44 205.732L225.872 208.125L218.156 240.815C221.457 245.88 225.975 253.638 229.843 263.21C231.803 268.069 233.598 273.402 234.981 279.076L190.634 305.164L190.644 305.824L190.046 305.505L189.457 305.845L189.447 305.184L144.13 280.819C145.595 273.639 147.729 266.985 150.041 261.116C150.082 261.023 150.113 260.92 150.155 260.827C153.311 252.905 156.809 246.417 159.48 241.939L150.372 209.053L149.145 204.627L148.484 202.244C144.151 213.003 136.167 232.18 130.596 241.608C128.595 244.992 126.058 247.808 123.334 250.15C118.073 255.111 97.1011 274.381 75.5413 287.173L73.5708 285.017L63.9054 274.424L113.049 228.219L129.658 180.736C139.221 160.218 146.39 159.929 146.39 159.929V159.939C147.71 158.825 149.216 157.886 150.907 157.226C151.454 157.009 152.012 156.793 152.578 156.555L152.589 156.545C155.828 155.214 159.458 153.513 163.09 151.377C167.371 148.849 171.663 145.703 175.335 141.814C175.872 138.162 176.067 132.963 176.139 129.59C176.181 127.578 176.181 126.206 176.181 126.206L186.631 127.279L197.029 125.804C197.029 125.804 197.122 128.516 197.369 131.921C197.607 134.984 197.947 138.616 198.463 141.37C200.165 143.041 201.991 144.568 203.878 145.929C210.429 150.747 217.732 153.841 223.468 155.833C224.953 156.348 226.305 157.07 227.532 157.937C229.028 158.309 235.506 160.909 243.521 179.012L259.222 226.795L307.481 273.927Z&quot;<br>    ).toNodes()<br>    val Breast = PathParser().parsePathString(<br>            &quot;M214.986 216.454C208.065 219.518 195.968 213.581 185.694 216.892C175.42 220.214 170.334 229.715 168.343 241.877C166.352 254.029 171.437 271.699 171.437 271.699C171.437 271.699 162.257 274.248 150.156 260.826C153.312 252.904 156.809 246.416 159.481 241.938L149.145 204.627L148.484 202.244C148.484 202.244 146.018 189.483 152.208 179.756C152.208 179.756 150.279 190.154 153.9 199.655C157.51 209.156 166.031 209.156 174.923 208.939C183.816 208.722 183.692 205.672 193.739 207.835C210.499 211.444 217.049 209.823 220.958 204.319C223.536 200.689 221.898 213.39 214.986 216.454Z&quot;<br>    ).toNodes()<br>    val LeftEar = PathParser().parsePathString(<br>            &quot;M167.292 114.917C167.292 114.917 164.911 110.061 161.778 110.252C158.646 110.443 157.598 117.129 162.011 122.336C166.423 127.545 170.432 125.311 170.432 125.311L167.292 114.917Z&quot;<br>    ).toNodes()<br>    val RightEar = PathParser().parsePathString(<br>            &quot;M206.581 114.163C206.581 114.163 208.773 109.22 211.911 109.291C215.048 109.361 216.353 116.002 212.143 121.375C207.933 126.749 203.842 124.671 203.842 124.671L206.581 114.163Z&quot;<br>    ).toNodes()<br>    val Face = PathParser().parsePathString(<br>            &quot;M207.99 104.138C208.363 123.538 196.803 140.881 187.593 141.057C176.423 141.272 165.618 123.052 165.271 104.958C165.015 91.5743 173.043 80.5661 186.427 80.3087C199.811 80.0521 207.733 90.754 207.99 104.138Z&quot;<br>    ).toNodes()<br>    val LeftEyebrow = PathParser().parsePathString(<br>            &quot;M170.059 105.928C170.059 105.928 173.201 105.031 176.601 104.783C180.862 104.471 182.433 104.916 182.433 104.916C182.433 104.916 181.613 102.526 178.026 102.595C174.441 102.664 170.059 105.928 170.059 105.928Z&quot;<br>    ).toNodes()<br>    val LeftEyeShadow = PathParser().parsePathString(<br>            &quot;M182.216 111.167C182.216 111.167 179.701 107.785 176.465 107.749C173.23 107.713 170.36 111.395 170.36 111.395C170.36 111.395 171.244 112.365 175.84 112.564C180.547 112.768 182.216 111.167 182.216 111.167Z&quot;<br>    ).toNodes()<br>    val LeftEyeLash = PathParser().parsePathString(<br>            &quot;M176.378 112.292C173.329 112.321 170.849 111.555 170.43 111.417L170.385 111.394C170.382 111.396 170.378 111.398 170.375 111.399C170.37 111.398 170.36 111.395 170.36 111.395C170.362 111.397 170.367 111.4 170.37 111.402C169.834 111.747 168.734 111.839 168.734 111.839C169.868 112.193 170.767 112.075 171.17 111.987C172.049 112.584 173.607 113.368 176.397 113.337C180.404 113.293 182.214 111.167 182.214 111.167C182.214 111.167 179.725 112.26 176.378 112.292Z&quot;<br>    ).toNodes()<br>    val RightEyebrow = PathParser().parsePathString(<br>            &quot;M203.033 105.295C203.033 105.295 199.859 104.52 196.452 104.403C192.181 104.255 190.629 104.759 190.629 104.759C190.629 104.759 191.357 102.339 194.943 102.271C198.529 102.201 203.033 105.295 203.033 105.295Z&quot;<br>    ).toNodes()<br>    val RightEyeShadow = PathParser().parsePathString(<br>            &quot;M191.086 110.997C191.086 110.997 193.47 107.521 196.701 107.361C199.933 107.2 202.942 110.77 202.942 110.77C202.942 110.77 202.096 111.773 197.511 112.148C192.814 112.532 191.086 110.997 191.086 110.997Z&quot;).toNodes()<br>    val RightEyeLash = PathParser().parsePathString(<br>            &quot;M204.582 111.15C204.582 111.15 203.479 111.101 202.931 110.776C202.934 110.775 202.938 110.771 202.942 110.769C202.942 110.769 202.932 110.773 202.928 110.775C202.925 110.773 202.92 110.772 202.917 110.77L202.873 110.795C202.459 110.948 200.01 111.809 196.963 111.897C193.616 111.994 191.086 110.997 191.086 110.997C191.086 110.997 192.977 113.052 196.983 112.942C199.772 112.866 201.299 112.022 202.155 111.392C202.559 111.464 203.462 111.548 204.582 111.15Z&quot;).toNodes()<br><br>    val Nose = PathParser().parsePathString(<br>            &quot;M183.877 122.8C183.877 122.8 185.595 123.844 187.002 123.916C188.409 123.987 190.082 122.68 190.082 122.68C190.082 122.68 188.772 122.543 187.204 122.507C185.635 122.472 183.877 122.8 183.877 122.8Z&quot;<br>    ).toNodes()<br>    val Lips = PathParser().parsePathString(<br>            &quot;M187.751 128.812C191.224 128.603 193.429 127.51 193.429 127.51C193.429 127.51 189.713 127.112 188.761 127.298C188.17 127.413 187.757 127.978 187.53 128.39C187.287 127.987 186.854 127.438 186.259 127.346C185.3 127.196 181.603 127.737 181.603 127.737C181.603 127.737 183.849 128.745 187.327 128.821C187.326 128.824 187.321 128.837 187.321 128.837C187.395 128.834 187.465 128.828 187.539 128.825C187.612 128.826 187.682 128.828 187.757 128.828C187.757 128.828 187.753 128.815 187.751 128.812Z&quot;<br>    ).toNodes()<br>    val Hair = PathParser().parsePathString(<br>            &quot;M195.012 91.8083C195.012 91.8083 190.358 89.3492 184.091 89.6659C177.824 89.9825 172.956 94.8782 171.141 98.3437C169.327 101.809 167.484 102.798 167.484 102.798C167.484 102.798 168.058 111.2 166.451 114.781C166.451 114.781 164.28 111.152 161.779 110.253C161.779 110.253 159.639 102.583 160.953 94.4225C162.266 86.2614 170.919 77.4699 182.56 76.2662C194.201 75.0625 200.093 80.7324 200.093 80.7324C200.093 80.7324 207.822 85.0925 210.121 92.498C212.419 99.9036 210.448 109.515 210.448 109.515C210.448 109.515 208.458 110.523 207.177 113.999C207.177 113.999 203.453 108.379 204.41 102.088C204.408 102.088 202.884 92.0817 195.012 91.8083Z&quot;<br>    ).toNodes()<br>    val Braid = PathParser().parsePathString(<br>            &quot;M201.933 84.9093C199.6 85.6478 184.54 77.4972 184.54 77.4972C184.54 77.4972 184.461 76.1779 184.885 74.4752C185.476 72.1223 187.011 69.0223 191.017 67.5752C191.706 67.329 192.385 67.1524 193.045 67.034C199.079 66.0107 204.089 70.1443 205.527 74.3577C207.12 79.0335 204.276 84.181 201.933 84.9093Z&quot;<br>    ).toNodes()<br>    val Chin = PathParser().parsePathString(<br>            &quot;M182.668 129.218C182.668 129.218 183.399 130.258 186.107 130.916C188.816 131.575 190.779 130.459 192.401 129.423C192.401 129.423 190.935 132.221 187.88 132.597C184.824 132.975 182.774 129.633 182.668 129.218Z&quot;<br>    ).toNodes()<br>    val RightFoot = PathParser().parsePathString(<br>            &quot;M164.77 313.741C164.77 313.741 158.69 314.516 156.57 314.928C156.57 314.928 148.077 313.711 144.509 313.862C140.94 314.014 138.99 318.261 136.974 322.87C134.958 327.479 127.148 332.39 124.388 335.26C121.629 338.13 121.555 342.341 121.615 343.232C121.675 344.123 119.878 346.66 120.823 348.743C121.768 350.826 122.795 350.131 123.674 349.893C124.553 349.655 125.169 348.182 125.169 348.182C125.169 348.182 127.414 348.299 128.37 347.877C129.325 347.455 128.506 347.241 130.644 347.097C132.781 346.953 133.927 346.696 135.233 346.161C136.539 345.625 145.487 336.343 150.331 333.87C155.175 331.396 162.642 331.967 162.642 331.967L164.77 313.741Z&quot;<br>    ).toNodes()<br><br>    val Thighs = PathParser().parsePathString(<br>            &quot;M302.076 320.049C287.634 328.127 263.712 331.304 236.025 332.985C232.651 333.191 229.227 333.376 225.75 333.542L226.225 345.549C226.225 345.549 224.12 345.528 220.396 345.477C208.976 345.342 182.352 345.002 154.592 344.445C109.698 343.558 73.9853 332.417 63.6696 322.483C58.6978 317.686 55.7472 310.042 56.7997 302.904C57.635 297.251 60.9878 291.917 67.8267 288.545C69.457 287.74 72.3033 286.719 76.1512 285.625C88.2203 282.169 110.059 277.991 134.146 277.765C134.527 277.734 134.888 277.713 135.239 277.682C138.416 272.916 150.156 260.827 150.156 260.827C150.156 260.827 158.408 267.769 169.693 271.895C175.656 274.071 182.475 275.474 189.365 274.639C209.296 272.235 229.318 261.125 229.318 261.125C233.372 265.159 237.251 274.628 237.251 274.628C257.202 274.814 290.242 280.87 297.35 284.428C297.402 284.459 297.443 284.49 297.484 284.511C302.313 285.81 306.335 288.616 309.089 292.186C315.475 300.449 315.053 312.807 302.076 320.049Z&quot;<br>    ).toNodes()<br>    val CrossLegs = PathParser().parsePathString(<br>            &quot;M278.432 289.617C251.9 293.382 177.627 312.395 177.627 312.395C177.627 312.395 138.499 294.486 112.266 290.288C87.3539 286.307 72.8191 288.286 76.1512 285.625C88.2203 282.169 110.059 277.991 134.146 277.765C134.527 277.734 134.888 277.713 135.239 277.682C138.416 272.916 150.156 260.827 150.156 260.827C150.156 260.827 158.408 267.769 169.693 271.895C170.601 276.269 186.25 297.798 197.525 294.259C208.8 290.731 223.603 285.862 230.68 288.297C237.756 290.731 252.126 289.401 262.029 287.172C271.923 284.944 278.432 289.617 278.432 289.617Z&quot;<br>    ).toNodes()<br>    val LeftFoot = PathParser().parsePathString(<br>            &quot;M216.191 326.575C216.191 326.575 222.256 327.469 224.367 327.922C224.367 327.922 232.881 326.871 236.446 327.092C240.012 327.313 241.879 331.598 243.803 336.245C245.728 340.893 253.441 345.956 256.144 348.879C258.846 351.802 258.838 356.013 258.761 356.903C258.684 357.792 260.431 360.364 259.445 362.428C258.458 364.493 257.445 363.778 256.571 363.522C255.697 363.266 255.11 361.782 255.11 361.782C255.11 361.782 252.863 361.855 251.916 361.414C250.969 360.974 251.792 360.776 249.658 360.59C247.524 360.404 246.383 360.126 245.088 359.565C243.793 359.004 235.028 349.549 230.233 346.981C225.439 344.413 217.961 344.838 217.961 344.838L216.191 326.575Z&quot;<br>    ).toNodes()<br>    val LeftPalm = PathParser().parsePathString(<br>            &quot;M63.9017 274.422C63.9017 274.422 58.8801 273.655 56.8673 273.693C54.8536 273.732 50.7923 275.018 48.4986 275.407C46.2039 275.796 45.0547 275.876 45.1186 276.22C45.1825 276.564 45.9474 277.413 48.4864 277.767C51.0254 278.121 53.197 277.446 54.5501 277.42C55.9032 277.394 56.2058 278.194 56.2058 278.194C56.2058 278.194 54.8376 281.846 50.4212 282.621C46.0047 283.396 44.2663 282.74 43.9666 282.112C43.6668 281.485 45.5405 277.19 45.05 275.589C44.5586 273.987 43.8134 274.116 42.8841 276.667C41.9548 279.217 40.3329 281.665 40.3648 283.333C40.3968 285 43.244 286.443 43.244 286.443C43.244 286.443 37.7648 285.8 36.1251 287.327C34.4853 288.855 37.7667 288.907 40.3611 289.145C42.9555 289.383 45.3864 290.142 46.9369 289.939C46.9369 289.939 39.9721 289.843 38.6124 290.963C37.2527 292.082 40.0294 292.834 42.6755 292.784C45.3216 292.733 48.8999 293.298 49.4759 293.286C49.4759 293.286 43.275 294.038 43.478 295.589C43.68 297.138 44.8114 296.081 48.213 296.418C51.6146 296.756 54.4336 296.702 57.6369 295.719C60.8402 294.737 73.5737 285.015 73.5737 285.015L63.9017 274.422Z&quot;<br>    ).toNodes()<br>    val RightPalm = PathParser().parsePathString(<br>            &quot;M307.483 273.93C307.483 273.93 312.517 273.259 314.53 273.336C316.543 273.413 320.578 274.777 322.865 275.21C325.151 275.643 326.299 275.745 326.228 276.088C326.158 276.431 325.377 277.264 322.832 277.569C320.287 277.875 318.128 277.159 316.777 277.107C315.425 277.055 315.106 277.85 315.106 277.85C315.106 277.85 316.405 281.526 320.805 282.386C325.206 283.246 326.957 282.622 327.269 282C327.581 281.379 325.789 277.049 326.311 275.457C326.832 273.865 327.575 274.008 328.456 276.575C329.336 279.143 330.911 281.621 330.847 283.288C330.784 284.955 327.909 286.342 327.909 286.342C327.909 286.342 333.4 285.804 335.009 287.363C336.62 288.922 333.338 288.911 330.739 289.099C328.141 289.287 325.695 290 324.149 289.768C324.149 289.768 331.115 289.805 332.453 290.95C333.791 292.096 331.001 292.795 328.356 292.693C325.711 292.592 322.123 293.088 321.548 293.066C321.548 293.066 327.732 293.936 327.501 295.481C327.269 297.027 326.159 295.948 322.751 296.221C319.344 296.493 316.527 296.385 313.342 295.342C310.158 294.299 297.612 284.336 297.612 284.336L307.483 273.93Z&quot;<br>    ).toNodes()<br>    val whiteLineOnCreamBackGround = PathParser().parsePathString(<br>            &quot;M162.696 44.0252C158.211 48.4454 155.201 54.2103 153.636 60.445C152 66.9663 146.286 78.2592 126.988 89.5512C97.2993 106.925 109.072 118.122 97.1462 138.188C85.2208 158.255 51.2509 142.861 36.9087 181.356C22.5656 219.85 55.6344 237.227 53.1236 260.24C50.6119 283.253 30.8695 284.603 39.9288 330.801H339.194C339.194 330.801 355.157 289.498 339.194 267.052C323.23 244.606 310.577 234.7 318.574 216.601C326.572 198.502 323.012 168.917 301.876 160.032C280.739 151.147 290.553 117.698 267.151 98.4912C243.749 79.2853 224.67 87.9716 213.451 64.2807C203.596 43.4755 183.153 23.8618 162.696 44.0252Z&quot;<br>    ).toNodes()<br>    val rightButterfly = PathParser().parsePathString(<br>            &quot;M278.174 158.08C276.328 157.008 273.904 157.784 273.511 157.183C273.117 156.582 275.498 154.727 276.264 152.78C277.03 150.833 276.168 145.787 273.031 148.163C269.894 150.539 269.752 154.589 269.752 154.589C269.752 154.589 269.701 154.812 269.66 155.183C268.595 152.679 269.168 149.222 269.173 149.184C269.205 148.996 269.08 148.817 268.892 148.784C268.696 148.751 268.525 148.878 268.494 149.066C268.467 149.214 268.011 151.984 268.689 154.48C267.04 152.578 264.636 151.421 264.503 151.359C264.332 151.278 264.125 151.35 264.044 151.523C263.962 151.695 264.035 151.902 264.208 151.983C264.245 152.001 267.666 153.647 269.003 156.122C268.591 155.823 268.302 155.669 268.302 155.669C268.302 155.669 265.146 153.131 261.298 153.956C257.45 154.781 260.706 158.73 262.679 159.421C264.652 160.113 267.611 159.52 267.809 160.211C268.006 160.902 265.835 162.232 265.441 164.332C265.046 166.431 267.513 168.609 268.894 168.705C270.146 168.793 272.037 164.59 272.017 161.45C274.438 163.36 278.51 164.515 279.228 163.555C280.056 162.444 280.021 159.152 278.174 158.08Z&quot;<br>    ).toNodes()<br><br>    val middleButterfly = PathParser().parsePathString(<br>    &quot;M179.586 69.8417C179.24 68.1212 177.445 67.0519 177.6 66.4815C177.755 65.912 180.191 66.3678 181.805 65.7805C183.418 65.1932 186.052 61.9156 182.883 61.2776C179.715 60.6395 177.148 62.7566 177.148 62.7566C177.148 62.7566 176.983 62.8468 176.732 63.0226C177.693 61.0041 180.129 59.4753 180.156 59.4574C180.29 59.3748 180.331 59.2 180.249 59.0665C180.162 58.9284 179.991 58.8918 179.859 58.9745C179.753 59.0393 177.802 60.2646 176.636 62.0406C176.908 59.9902 176.31 57.8797 176.277 57.7651C176.233 57.6157 176.076 57.5283 175.925 57.5715C175.775 57.6148 175.688 57.7726 175.733 57.923C175.742 57.9549 176.591 60.9572 175.797 63.1278C175.756 62.7115 175.694 62.4494 175.694 62.4494C175.694 62.4494 175.536 59.1248 172.935 57.2041C170.334 55.2844 169.678 59.4377 170.328 61.0286C170.977 62.6194 172.951 64.1191 172.634 64.6172C172.316 65.1142 170.317 64.5016 168.812 65.4018C167.307 66.3011 167.31 69.0045 168.003 69.9075C168.631 70.725 172.243 69.604 174.162 67.8816C174.306 70.4121 175.811 73.5468 176.793 73.467C177.929 73.3758 179.932 71.5623 179.586 69.8417Z&quot;<br>    ).toNodes()<br><br>    val leftButterfly = PathParser().parsePathString(<br>            &quot;M73.9391 190.606C73.5933 188.886 71.7976 187.816 71.9527 187.246C72.1077 186.676 74.5443 187.132 76.1577 186.545C77.7711 185.957 80.405 182.68 77.2364 182.042C74.0679 181.404 71.5007 183.52 71.5007 183.52C71.5007 183.52 71.3363 183.61 71.0854 183.786C72.0457 181.768 74.4823 180.239 74.5095 180.221C74.6429 180.138 74.6843 179.963 74.6016 179.83C74.5152 179.692 74.3441 179.655 74.2116 179.738C74.1064 179.803 72.1547 181.028 70.9895 182.804C71.2611 180.754 70.6635 178.644 70.6296 178.528C70.5864 178.379 70.4285 178.292 70.2782 178.335C70.1278 178.378 70.0414 178.536 70.0856 178.686C70.095 178.718 70.9444 181.721 70.1504 183.891C70.1091 183.474 70.047 183.213 70.047 183.213C70.047 183.213 69.8892 179.888 67.2882 177.967C64.6872 176.048 64.0313 180.201 64.6806 181.792C65.3299 183.383 67.3041 184.883 66.9865 185.381C66.6689 185.879 64.6702 185.265 63.1649 186.165C61.6595 187.064 61.6633 189.769 62.3558 190.671C62.9835 191.488 66.5956 190.367 68.5154 188.645C68.6591 191.175 70.1645 194.31 71.1464 194.23C72.2816 194.139 74.2849 192.327 73.9391 190.606Z&quot;    ).toNodes()<br><br>    val whiteDotInBackground_1 = PathParser().parsePathString(<br>            &quot;M131.627 116.499C131.295 116.947 130.662 117.041 130.214 116.709C129.766 116.376 129.672 115.743 130.004 115.294C130.337 114.846 130.97 114.752 131.418 115.085C131.866 115.417 131.96 116.05 131.627 116.499Z&quot;<br>    ).toNodes()<br>    val whiteDotInBackground_2 = PathParser().parsePathString(<br>            &quot;M134.234 112.192C133.901 112.64 133.269 112.734 132.821 112.401C132.372 112.069 132.278 111.435 132.611 110.987C132.944 110.539 133.576 110.445 134.024 110.777C134.473 111.11 134.567 111.743 134.234 112.192Z&quot;    ).toNodes()<br>    val whiteDotInBackground_3 = PathParser().parsePathString(<br>&quot;M137.264 118.985C136.932 119.434 136.299 119.528 135.851 119.195C135.403 118.862 135.309 118.229 135.642 117.781C135.974 117.333 136.607 117.239 137.055 117.571C137.504 117.904 137.597 118.537 137.264 118.985Z&quot;<br>    ).toNodes()<br>    val whiteDotInBackground_4 = PathParser().parsePathString(<br>            &quot;M267.619 128.346C267.286 128.795 266.654 128.889 266.206 128.556C265.757 128.223 265.663 127.59 265.996 127.142C266.329 126.694 266.961 126.6 267.409 126.932C267.858 127.265 267.952 127.897 267.619 128.346Z&quot;    ).toNodes()<br>    val whiteDotInBackground_5 = PathParser().parsePathString(<br>            &quot;M270.226 124.039C269.893 124.487 269.261 124.581 268.812 124.249C268.364 123.916 268.27 123.283 268.603 122.834C268.935 122.386 269.568 122.292 270.016 122.625C270.464 122.957 270.558 123.591 270.226 124.039Z&quot;    ).toNodes()<br>    val whiteDotInBackground_6 = PathParser().parsePathString(<br>            &quot;M273.256 130.833C272.923 131.281 272.291 131.375 271.843 131.042C271.395 130.71 271.301 130.076 271.633 129.628C271.966 129.18 272.598 129.086 273.046 129.419C273.495 129.751 273.589 130.385 273.256 130.833Z&quot;    ).toNodes()<br>    val whiteDotInBackground_7 = PathParser().parsePathString(<br>            &quot;M219.654 87.3402C219.322 87.7884 218.689 87.8824 218.241 87.5497C217.793 87.2171 217.699 86.5838 218.032 86.1355C218.364 85.6873 218.997 85.5933 219.445 85.926C219.893 86.2577 219.987 86.891 219.654 87.3402Z&quot;    ).toNodes()<br>    val whiteDotInBackground_8 = PathParser().parsePathString(<br>            &quot;M222.261 83.0328C221.928 83.481 221.296 83.5749 220.848 83.2423C220.4 82.9097 220.306 82.2763 220.638 81.8281C220.971 81.3799 221.603 81.2859 222.052 81.6186C222.5 81.9512 222.594 82.5845 222.261 83.0328Z&quot;    ).toNodes()<br>    val whiteDotInBackground_9 = PathParser().parsePathString(<br>            &quot;M225.292 89.8275C224.959 90.2757 224.327 90.3697 223.878 90.0371C223.43 89.7044 223.336 89.0711 223.669 88.6229C224.001 88.1746 224.634 88.0807 225.082 88.4133C225.53 88.745 225.624 89.3784 225.292 89.8275Z&quot;    ).toNodes()<br>    val whiteDotInBackground_10 = PathParser().parsePathString(<br>            &quot;M232.721 146.19C232.29 145.834 232.23 145.197 232.585 144.766C232.94 144.336 233.578 144.275 234.008 144.631C234.438 144.986 234.498 145.624 234.143 146.054C233.788 146.484 233.151 146.545 232.721 146.19Z&quot;    ).toNodes()<br>    val whiteDotInBackground_11 = PathParser().parsePathString(<br>            &quot;M236.883 149.018C236.453 148.663 236.393 148.025 236.748 147.595C237.103 147.164 237.74 147.103 238.171 147.459C238.601 147.814 238.661 148.452 238.306 148.883C237.95 149.313 237.314 149.373 236.883 149.018Z&quot;    ).toNodes()<br>    val whiteDotInBackground_12 = PathParser().parsePathString(<br>            &quot;M229.946 151.693C229.515 151.338 229.455 150.7 229.81 150.27C230.166 149.839 230.803 149.778 231.233 150.134C231.663 150.49 231.724 151.128 231.368 151.558C231.012 151.988 230.376 152.05 229.946 151.693Z&quot;    ).toNodes()<br>    val whiteDotInBackground_13 = PathParser().parsePathString(<br>            &quot;M87.243 167.421C87.243 168.131 86.6679 168.706 85.9585 168.706C85.249 168.706 84.674 168.131 84.674 167.421C84.674 166.711 85.249 166.135 85.9585 166.135C86.6679 166.135 87.243 166.71 87.243 167.421Z&quot;    ).toNodes()<br>    val whiteDotInBackground_14 = PathParser().parsePathString(<br>            &quot;M259.39 101.157C259.39 102.039 258.676 102.754 257.795 102.754C256.913 102.754 256.199 102.039 256.199 101.157C256.199 100.276 256.913 99.5606 257.795 99.5606C258.676 99.5606 259.39 100.276 259.39 101.157Z&quot;    ).toNodes()<br>    val whiteDotInBackground_15 = PathParser().parsePathString(<br>            &quot;M149.145 150.914C149.145 151.796 148.43 152.511 147.55 152.511C146.669 152.511 145.954 151.796 145.954 150.914C145.954 150.033 146.669 149.318 147.55 149.318C148.43 149.318 149.145 150.033 149.145 150.914Z&quot;    ).toNodes()<br>    val whiteDotInBackground_16 = PathParser().parsePathString(<br>            &quot;M179.639 46.662C179.639 47.1995 179.203 47.6355 178.665 47.6355C178.128 47.6355 177.692 47.1995 177.692 46.662C177.692 46.1245 178.128 45.6885 178.665 45.6885C179.203 45.6885 179.639 46.1245 179.639 46.662Z&quot;    ).toNodes()<br>    val whiteDotInBackground_17 = PathParser().parsePathString(<br>            &quot;M254.095 189.694C254.095 190.493 253.448 191.142 252.648 191.142C251.849 191.142 251.201 190.493 251.201 189.694C251.201 188.894 251.848 188.246 252.648 188.246C253.448 188.246 254.095 188.894 254.095 189.694Z&quot;    ).toNodes()<br>    val whiteDotInBackground_18 = PathParser().parsePathString(<br>            &quot;M159.194 79.5701C159.194 80.3697 158.547 81.0181 157.747 81.0181C156.949 81.0181 156.3 80.3697 156.3 79.5701C156.3 78.7704 156.948 78.1221 157.747 78.1221C158.547 78.1221 159.194 78.7704 159.194 79.5701Z&quot;    ).toNodes()<br><br>    val mat =  PathParser().parsePathString(<br>            &quot;M-0.30595 322.039H385.968C388.813 322.039 389.595 325.957 386.963 327.038C361.127 337.652 292.612 361.697 196.589 364.443C107.297 366.996 32.6943 343.758 -1.88365 330.64C-6.50494 328.888 -5.24767 322.039 -0.30595 322.039Z&quot;<br>    ).toNodes()<br>    val leftPlant = PathParser().parsePathString(<br>            &quot;M128.444 241.126C127.59 225.868 111.599 222.801 110 219.004C108.402 215.207 105.819 207.44 94.3055 203.777C82.7918 200.115 75.6277 206.885 69.176 202.739C62.7242 198.593 56.9828 195.165 49.2926 200.38C41.6023 205.594 36.1532 203.677 25.051 202.42C13.9488 201.162 5.13192 211.87 5.13192 211.87C0.789716 215.853 4.97875 220.897 15.2155 223.371C29.6704 226.865 25.5425 236.253 33.2477 240.058C40.953 243.863 50.1101 240.093 55.9173 244.697C61.7235 249.302 61.2856 257.651 68.4722 259.612C75.6588 261.572 84.1364 256.799 88.2484 259.624C92.3604 262.448 94.6006 270.818 99.5075 273.708C104.415 276.599 118.304 277.314 118.304 277.314L121.658 276.503C121.658 276.503 129.298 256.385 128.444 241.126Z&quot;<br>    ).toNodes()<br>    val leftPlantWhiteLine = PathParser().parsePathString(<br>            &quot;M119.38 271.702C119.38 271.702 115.755 240.556 94.3356 226.369C72.9159 212.182 37.7873 211.844 27.138 211.255C16.4888 210.667 16.4888 210.667 16.4888 210.667C16.4888 210.667 59.4777 207.933 80.7931 216.602C110.068 228.508 118.408 247.957 119.38 271.702Z&quot;    ).toNodes()<br>    val nextToLeftPlant = PathParser().parsePathString(<br>            &quot;M103.662 238.915C103.662 238.915 85.7508 222.915 83.053 209.597C80.3552 196.28 88.2719 191.305 82.9421 184.563C77.6123 177.821 79.9944 165.722 85.732 162.651C91.4696 159.581 93.8197 152.879 94.3816 143.615C94.9436 134.351 102.005 130.904 104.193 133.474C110.216 140.551 107.221 147.787 116.435 152.288C125.648 156.79 128.915 166.113 126.604 173.746C124.292 181.379 134.452 183.815 141.18 195.468C147.908 207.121 143.034 216.863 140.18 224.172C137.325 231.481 145.236 240.286 142.364 248.711C139.492 257.136 119.671 271.006 119.671 271.006C119.671 271.006 110.081 267.463 103.662 238.915Z&quot;    ).toNodes()<br>    val nextToLeftPlantWhiteLine = PathParser().parsePathString(<br>        &quot;M103.481 146.372C103.481 146.372 109.396 169.178 116.518 198.578C123.64 227.979 124.839 264.239 124.839 264.239C124.839 264.239 128.962 237.924 123.62 213.229C118.278 188.534 103.932 150.173 103.481 146.372Z&quot;<br>    ).toNodes()<br>    val middlePlant = PathParser().parsePathString(<br>            &quot;M106.065 250.818C103.623 238.288 115.94 232.52 116.454 229.117C116.968 225.715 117.465 218.896 126.034 213.565C134.604 208.234 141.795 212.244 146.168 207.562C150.54 202.88 154.485 198.925 161.782 201.567C169.08 204.21 173.098 201.538 181.829 198.239C190.56 194.941 199.898 201.799 199.898 201.799C204.232 204.133 201.877 209.077 194.096 213.184C183.111 218.981 188.381 225.735 182.924 230.398C177.467 235.062 169.278 233.89 165.522 238.811C161.766 243.731 163.836 250.403 158.421 253.466C153.005 256.529 145.16 254.407 142.412 257.538C139.663 260.669 139.568 267.906 136.188 271.255C132.808 274.603 121.71 278.035 121.71 278.035L118.827 278.068C118.827 278.068 108.509 263.348 106.065 250.818Z&quot;    ).toNodes()<br>    val middlePlantWhiteLine = PathParser().parsePathString(<br>            &quot;M119.686 273.713C119.686 273.713 116.222 247.75 130.651 231.863C145.08 215.976 173.453 208.486 181.954 205.822C190.455 203.158 190.455 203.158 190.455 203.158C190.455 203.158 155.086 209.775 139.609 221.173C118.353 236.826 115.595 254.287 119.686 273.713Z&quot;    ).toNodes()<br>    val smallPlant = PathParser().parsePathString(<br>            &quot;M111.216 273.668C111.216 273.668 87.617 267.207 75.2265 272.874C62.836 278.541 60.5498 286.329 60.5498 286.329C60.5498 286.329 65.8561 288.185 75.9472 286.772C86.0392 285.358 87.5512 279.379 94.5874 282.223C101.624 285.066 103.933 287.805 109.857 286.108C115.781 284.411 118.825 278.069 118.825 278.069L111.216 273.668Z&quot;<br>    ).toNodes()<br>    val rightPlant = PathParser().parsePathString(<br>            &quot;M259.43 245.467C259.43 245.467 272.696 253.977 299.979 258.733C327.263 263.489 338.777 255.729 340.279 252.1C341.78 248.47 337.275 246.468 319.504 243.214C301.732 239.96 296.976 235.955 305.737 234.955C314.497 233.954 326.763 241.713 337.276 241.713C347.789 241.713 355.048 236.123 355.298 232.284C355.548 228.447 323.759 227.445 319.754 221.938C315.749 216.432 340.362 222.188 350.959 223.691C361.556 225.192 365.811 216.933 365.06 214.18C364.309 211.426 338.527 210.534 336.024 206.724C333.521 202.916 346.787 204.275 358.302 206.724C369.815 209.173 375.573 200.662 374.071 198.66C372.57 196.658 351.294 195.156 349.04 191.401C346.787 187.646 360.554 188.648 367.563 190.149C374.572 191.651 382.081 184.893 379.578 182.641C377.074 180.388 361.305 179.636 360.805 176.382C360.304 173.128 381.814 174.881 380.07 170.125C378.326 165.369 372.319 160.919 363.057 160.766C353.796 160.614 345.285 170.375 340.28 167.372C335.273 164.368 352.544 157.109 348.04 154.356C343.534 151.602 333.522 153.104 330.018 157.86C326.514 162.615 326.263 170.625 322.509 170.375C318.754 170.125 325.262 158.861 322.008 156.358C318.754 153.855 310.243 159.111 308.492 164.118C306.739 169.123 308.742 179.136 305.238 179.636C301.734 180.137 306.081 163.617 303.03 162.115C299.981 160.614 290.219 170.375 289.969 176.383C289.719 182.391 292.973 191.854 287.717 193.38C282.46 194.906 283.462 176.132 279.457 174.381C275.452 172.628 267.442 184.11 268.694 193.512C269.946 202.916 272.699 210.609 268.944 210.642C265.189 210.675 262.436 198.66 259.433 196.658C256.428 194.655 253.723 199.662 252.949 212.427C252.171 225.192 258.193 242.338 259.43 245.467Z&quot;    ).toNodes()<br><br>    val rightPlantMiddleLine = PathParser().parsePathString(<br>            &quot;M255.148 266.03C255.148 266.03 269.208 229.962 285.564 209.976C301.92 189.991 333.483 177.938 348.692 177.078C348.692 177.078 312.713 183.766 289.581 212.372C266.449 240.977 257.73 280.091 257.73 280.091L251.417 278.849L255.148 266.03Z&quot;    ).toNodes()<br><br>    val smallPlant_2 = PathParser().parsePathString(<br>            &quot;M122.835 274.514C122.835 274.514 129.18 267.199 138.384 267.686C147.589 268.173 149.206 271.382 153.715 271.587C158.225 271.792 160.716 270.369 166.871 272.471C172.963 274.551 176.565 277.401 176.565 277.401C176.565 277.401 170.307 286.46 160.563 284.114C150.82 281.769 143.448 280.256 140.261 283.521C137.074 286.787 117.055 280.836 117.055 280.836L122.835 274.514Z&quot;     ).toNodes()<br><br>    val smallPlant_right = PathParser().parsePathString(<br>            &quot;M345.801 317.144H358.181C358.181 317.144 363.781 306.828 377.338 299.754C390.896 292.68 392.369 284.148 392.96 280.162C393.549 276.176 387.654 278.239 378.812 283.544C369.97 288.849 367.612 301.409 363.78 301.171C359.949 300.933 362.307 286.495 370.559 281.777C378.811 277.06 385.296 265.565 387.358 258.197C389.422 250.829 372.621 256.134 364.663 264.976C356.705 273.818 357.885 295.412 351.99 298.173C346.095 300.933 356.411 282.807 344.475 275.413C339.688 272.448 338.431 280.927 339.905 291.667C341.381 302.407 348.749 307.417 345.801 317.144Z&quot;<br>    ).toNodes()<br>    val smallPlant_right_base = PathParser().parsePathString(<br>            &quot;M324.953 323.553C324.953 323.553 346.689 325.92 363.476 325.92C380.262 325.92 386.718 324.414 386.718 324.414C386.718 324.414 383.06 317.527 372.299 314.945C361.539 312.363 360.463 318.818 355.728 314.945C350.993 311.072 342.385 308.273 334.853 310.425C327.32 312.577 324.953 323.553 324.953 323.553Z&quot;     ).toNodes()<br><br>    val ladyShadow = PathParser().parsePathString(<br>            &quot;M186.556 343.338C258.335 343.338 316.524 338.57 316.524 332.689C316.524 326.807 258.335 322.039 186.556 322.039C114.776 322.039 56.5873 326.807 56.5873 332.689C56.5873 338.57 114.776 343.338 186.556 343.338Z&quot;<br>    ).toNodes()<br>    val leftest_small_plant = PathParser().parsePathString(<br>            &quot;M24.2204 324.777C23.649 321.939 22.7733 318.74 21.6842 315.321C23.4686 311.855 28.5203 300.85 28.3991 287.529C28.2516 271.361 17.046 254.405 17.046 254.405C17.046 254.405 14.103 282.069 18.9798 307.516C15.6055 298.409 11.2793 288.53 7.27157 279.896C8.97707 276.325 12.0441 268.641 12.0207 259.528C11.9878 246.923 3.33812 233.649 3.33812 233.649C3.33812 233.649 1.0162 254.178 4.32007 273.63C1.36669 267.451 -1.18169 262.371 -2.72368 259.345C-2.99525 255.078 -4.04956 247.597 -7.92757 240.257C-13.8165 229.113 -27.6456 221.38 -27.6456 221.38C-27.6456 221.38 -18.9386 243.77 -5.29838 259.93C-4.06459 262.353 -1.99169 266.478 0.490917 271.611C-1.40346 268.833 -3.82404 265.876 -6.87045 263.193C-16.3273 254.86 -32 252.531 -32 252.531C-32 252.531 -14.1876 272.302 5.49372 282.205C7.5375 286.64 9.64517 291.362 11.6542 296.112C9.38113 293.023 6.59407 289.829 3.22348 286.899C-8.97624 276.288 -29.0992 273.432 -29.0992 273.432C-29.0992 273.432 -7.30833 297.307 17.202 310.147C19.2298 315.75 20.8451 320.973 21.7133 325.282L24.2204 324.777Z&quot;<br>    ).toNodes()<br>    val leftest_small_plant_base = PathParser().parsePathString(<br>            &quot;M0.391296 319.004C0.391296 319.004 2.39937 311.522 12.2546 308.053C22.1099 304.586 23.5701 313.893 29.7757 313.529C35.9812 313.164 38.8632 325.21 38.8632 325.21H-1.79907L0.391296 319.004Z&quot;<br>    ).toNodes()<br><br>}</pre><p>Similarly, when working on animating the clock, the process demanded another four hours of meticulous effort. Identifying the specific path and crafting an object ready for use in Jetpack Compose was a challenging yet rewarding endeavor. Each hour invested was a step closer to unraveling the intricacies of the SVG, and as the clock’s animated hands came to life, it underscored the significance of investing time and dedication into understanding the paths that compose the visual elements. This hands-on experience not only enhanced my comprehension of SVG animations but also paved the way for a smoother integration of the clock into the broader composition.</p><p>This marked the moment when I made a firm decision — I wouldn’t be spending hours deciphering SVG paths again. After all, I’m a developer, and my expertise lies in writing code that generates these objects seamlessly (a bit of daydreaming, perhaps). Some of you might be thinking that I invested a considerable amount of time for a seemingly small animation. However, being relatively new to the industry, my goal was to learn and acquire hands-on experience. Recognizing the value of practical learning, I decided to try my hand at building an SVG parser. While I’m aware that there are <a href="https://github.com/BigBadaboom/androidsvg">existing parsers for SVG</a>, I couldn’t quite grasp how to tailor them to my specific needs. Thus, the journey led me to create my SVG parser, which you can explore in this GitHub repository: <a href="https://github.com/vivekgupta4Git/SvgParser">SvgParser</a>. As of now, it parses simple SVGs, focusing solely on the “d” path. The parser returns a pair of two objects: PathNodeInfo and SvgInfo, both defined as data classes.</p><pre>data class PathNodeInfo(<br>    var pathString: String,<br>    var name: String = &quot;path&quot;,<br>    var fill: Brush? = SolidColor(Color.LightGray),<br>    var fillAlpha: Float = 1f,<br>    var stroke: Brush? = null,<br>    var strokeAlpha: Float = 1f,<br>    var strokeLineWidth: Float = 1f,<br>    var strokeLineCap: StrokeCap = StrokeCap.Butt,<br>    var strokeLineJoin: StrokeJoin = StrokeJoin.Bevel,<br>    var strokeLineMiter: Float = 1f,<br>    var pathFillType: PathFillType = DefaultFillType,<br>    var trimPathStart: Float = DefaultTrimPathStart,<br>    var trimPathEnd: Float = DefaultTrimPathEnd,<br>    var trimPathOffset: Float = DefaultTrimPathOffset<br>)<br>data class SvgInfo(<br>    var width : Float =24f,<br>    var height : Float =24f,<br>    var viewBoxWidth : Float = 24f,<br>    var viewBoxHeight : Float = 24f<br>)</pre><p>I can utilize this pair to effortlessly create an ImageVector. Leveraging this parser, I successfully crafted a straightforward animation. To replicate the animation, begin by opening the drawable resource file in your project:</p><pre>    val inputStream = this.resources.openRawResource(R.raw.new_animation_heart)     </pre><p>Secondly, to initiate the animation, parse the input stream:</p><pre>val infoPair = SvgParser.parse(inputStream)</pre><p>Thirdly, proceed to create the Image Vector within Jetpack Compose:</p><pre>val vectorPaint = rememberVectorPainter(<br>                        defaultWidth = infoPair.second.width.dp,<br>                        defaultHeight = infoPair.second.height.dp,<br>                        viewportWidth = infoPair.second.viewBoxWidth,<br>                        viewportHeight = infoPair.second.viewBoxHeight,<br>                        autoMirror = false<br>                    ) { _, _ -&gt;<br><br>infoPair.first.asSequence()<br>                            .forEach { node  -&gt;<br>                                     node.ToPath()<br>   <br>    }<br>}<br><br>@Composable<br>fun PathNodeInfo.ToPath() {<br>    Path(<br>        pathData = PathParser().parsePathString(pathString)<br>            .toNodes(),<br>        fill = fill,<br>        fillAlpha = fillAlpha,<br>        stroke = stroke,<br>        strokeAlpha = strokeAlpha,<br>        strokeLineWidth = strokeLineWidth,<br>        strokeLineCap = strokeLineCap,<br>        strokeLineJoin = strokeLineJoin,<br>        strokeLineMiter = strokeLineMiter,<br>        trimPathStart = trimPathStart,<br>        trimPathEnd = trimPathEnd,<br>        trimPathOffset = trimPathOffset<br>    )<br><br>}</pre><p>Voilà! With minimal time investment, I can now effortlessly retrieve the path data and preview it directly within Android Studio. No CodePen or Notepad required, and the best part — the code is in Kotlin (I have a soft spot for Kotlin ❤️).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*pMCBbNUIk8fxFrwkkgPZNg.png" /></figure><p>But wait, what’s an article about animation without a touch of magic? Let’s infuse some life into our creation. How about animating a heart? Picture this: a delightful heart pulsating with animation, adding a dash of charm to your Compose project. Stay tuned as we embark on the next step to make our code not just functional but visually enchanting! ❤️🚀</p><pre>  infoPair.first.asSequence()<br>                            .forEach { node  -&gt;<br>                                when(node.name){<br>                                    &quot;path_51&quot; -&gt; node.ToPath(alpha = alpha)<br>                                    else -&gt; node.ToPath()<br>                                }<br>                            }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vzx-BCGLq5Hm5Pi-LyVyHw.gif" /></figure><p>Easy, isn’t it? Well, that wraps it up for now. I’m open to suggestions and feedback for this article. Feel free to share your thoughts in the comment section below. Thanks a bunch for taking the time to read this lengthy piece. Happy coding, and may your projects be filled with endless creativity and success! 🚀💻.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79dc4b3d0a4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compose Coach]]></title>
            <link>https://medium.com/@itguru4all/compose-coach-745cd5725d7f?source=rss-51588d2ebab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/745cd5725d7f</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[coachmark]]></category>
            <dc:creator><![CDATA[Vivek]]></dc:creator>
            <pubDate>Sun, 21 Jan 2024 10:51:11 GMT</pubDate>
            <atom:updated>2024-01-21T10:52:58.825Z</atom:updated>
            <content:encoded><![CDATA[<p>With the introduction of jetpack compose, a new UI api, for android, lots of native apps are starting to migrate/adjust their code-bases for having jetpack compose as their new api for UI. We, at <a href="https://www.zyephr.com/">Zyephr</a> (a start up with focused on revolutionising the health industry), also decided to migrate our code-base. One of the challenges we faced was of our Coach Mark Library which was built for the view-system. Coach Marks are a great way to guide users through the features of an app, making the onboarding experience more intuitive and engaging.. They are a great way to educate old-aged people. As our app, can be used by old-aged people a lot, we were in a situation where we had to include coach mark for our app. So, Compose Coach is migration of our coach mark library for compose-code-base.</p><p><a href="https://github.com/vivekgupta4Git/ComposeCoach">Compose Coach</a> is designed in such a way that it lets developer develop their own coach mark library according to their brand. The two interface are the heart of this Coach Mark Library. <br>```</p><pre>interface RevealEffect {<br>    /**<br>     * enter animate shape defined by [drawTargetShape] method around target&#39;s bound<br>     */<br>    suspend fun enterAnimation(targetBounds: Rect)<br><br>    /**<br>     * exit animate shape defined by [drawTargetShape] method around target&#39;s bound<br>     */<br>    suspend fun exitAnimation(targetBounds: Rect)<br><br>    /**<br>     * draw Target Shape with the given bounds [targetBounds]<br>     * @param targetBounds Rectangle of the target&#39;s bound<br>     * @param drawScope DrawScope for the drawing the shape<br>     * @return [Rect] return the new Rectangle(New Bound) generated by the this method<br>     */<br>    fun drawTargetShape(targetBounds: Rect, drawScope: DrawScope) : Rect<br>}</pre><pre>interface  CoachStyle {<br>    val backGroundColor: Color<br>    val backgroundAlpha: Float<br><br>    /**<br>     * @Composable<br>     * Draws the buttons for navigation between targets.<br>     * Important: Implementations of this method in subclasses must also be annotated with @Composable.<br>     * @param contentScope The [BoxWithConstraintsScope] for placing the buttons within the coach&#39;s content area.<br>     * @param targetBounds The [Rect] representing the target element that the coach is highlighting.<br>     * @param onBack A lambda to be invoked when the back button is pressed.<br>     * @param onSkip A lambda to be invoked when the skip button is pressed.<br>     * @param onNext A lambda to be invoked when the next button is pressed.<br>     */<br>    @SuppressLint(&quot;ComposableNaming&quot;)<br>    @Composable<br>    fun drawCoachButtons(<br>        contentScope : BoxWithConstraintsScope,<br>        targetBounds: Rect,<br>        onBack: () -&gt; Unit,<br>        onSkip: () -&gt; Unit,<br>        onNext: () -&gt; Unit<br>    )<br>    /**<br>     *Draws the shape around the Target<br>     *@param targetBounds The [Rect] defining the bounds of the target element to be highlighted.<br>     *@param drawScope The [DrawScope] providing functions for drawing shapes, paths, text, and other visual elements.<br>     *@return [Rect] return the rectangle generated by CoachShape !<br>     */<br>    fun drawCoachShape(targetBounds: Rect,<br>                       drawScope: DrawScope) : Rect<br>}</pre><p>RevealEffect Interface lets you build your own animation for the target i.e., the composable for which you need to guide user about its usage. One of the examples is Circle Reveal class.</p><pre>class CircleRevealEffect : RevealEffect {<br><br>    private val radius: Animatable&lt;Float, AnimationVector1D&gt; = Animatable(0f)<br>    override suspend fun enterAnimation(targetBounds: Rect) {<br>        radius.snapTo(0f)<br>        radius.animateTo(targetBounds.maxDimension / 2f + 40f, tween(500, easing = LinearEasing))<br>    }<br>    override suspend fun exitAnimation(targetBounds: Rect) {<br>      radius.animateTo(0f, tween(500, easing = LinearEasing))<br>    }<br><br>    override fun drawTargetShape(targetBounds: Rect, drawScope: DrawScope): Rect {<br>        drawScope.apply {<br>       drawCircle(<br>                color = Color.White,<br>                radius = radius.value,<br>                center = targetBounds.center,<br>                blendMode = BlendMode.Clear<br>            )<br>        }<br>        return Rect(<br>            offset = Offset(<br>                x = targetBounds.topLeft.x - 40f,<br>                y = targetBounds.topLeft.y - targetBounds.maxDimension / 2f<br>            ),<br>            size = Size(<br>                width = targetBounds.maxDimension + 80f,<br>                height = targetBounds.maxDimension + 80f<br>            )<br>        )<br>    }<br><br><br>}</pre><p>drawTargetShape lets you build the shape of the RevealEffect, here we get the rectangle bound and drawScope as input parameters which we used to build a circle of, half of the maximum dimension of the target bound’s height and width plus a margin of 40 (targetBounds.maxDimension / 2f + 40f). This method should return the new bound which will be used by the library to layout the content( most probably the message), here we returning the new bound by making a rectangle. The other method enterAnimation and exitAnimation are suspend function which is used by this library to animate the entry and exit animation of the shape that you build by overriding the drawTargetShape method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqcEvI2ie_M9sgJRr0Z04w.gif" /></figure><p>CoachStyle Interface, lets you build the buttons /shapes according to the branding of your app.</p><pre>val backGroundColor: Color<br>val backgroundAlpha: Float</pre><p>This two -variables lets you describe the background of surface over which your message will be laid out. The default implementation of this interface uses black as a background color and 0.8f as alpha for the surface. The method drawCoachShape, lets you build the surface shape. The input parameters give you access to the drawScope of this surface. The default implementation draws a rectangle over the whole screen to create an overlay over the composables. And the drawCoachButtons lets you build buttons for the interactions. The default implementation create three buttons namely, skip, next and back (yes, back , sometime old people needs to go back to see the previous content)</p><pre>class DefaultCoachStyle : CoachStyle {<br>    override val backGroundColor: Color<br>        get() = Color.Black<br>    override val backgroundAlpha: Float<br>        get() = 0.8f<br><br><br>    @SuppressLint(&quot;ComposableNaming&quot;)<br>    @Composable<br>    override fun drawCoachButtons(<br>        contentScope: BoxWithConstraintsScope,<br>        targetBounds: Rect,<br>        onBack: () -&gt; Unit,<br>        onSkip: () -&gt; Unit,<br>        onNext: () -&gt; Unit<br>    ) {<br>        contentScope.apply {<br>            Button(<br>                onClick = {<br>                    onSkip()<br>                },<br>                modifier = Modifier.align(Alignment.BottomCenter),<br>                colors = ButtonDefaults.buttonColors(<br>                    backgroundColor = backGroundColor.invert(),<br>                    contentColor = backGroundColor<br>                )<br>            ) {<br>                Text(text = &quot;Skip&quot;)<br>            }<br>            Button(<br>                onClick = {<br>                    onNext()<br>                }, modifier = Modifier.align(Alignment.TopEnd),<br>                colors = ButtonDefaults.buttonColors(<br>                    backgroundColor = backGroundColor.invert(),<br>                    contentColor = backGroundColor<br>                )<br>            ) {<br>                Text(text = &quot;Next&quot;)<br>            }<br>            Button(<br>                onClick = {<br>                    onBack()<br>                }, modifier = Modifier.align(Alignment.TopStart),<br>                colors = ButtonDefaults.buttonColors(<br>                    backgroundColor = backGroundColor.invert(),<br>                    contentColor = backGroundColor<br>                )<br>            ) {<br>                Text(text = &quot;Back&quot;)<br>            }<br>        }<br>    }<br><br>    override fun drawCoachShape(targetBounds: Rect, drawScope: DrawScope): Rect {<br>        drawScope.apply {<br>            drawRect(color = backGroundColor.copy(alpha = backgroundAlpha))<br>        }<br>        return Rect(Offset.Zero, size = drawScope.size)<br>    }<br><br>}</pre><p>By just implementing these two interface you can create your own coachMark style according to your branding style. All these codes are available in the sample files(<a href="https://github.com/vivekgupta4Git/ComposeCoach/blob/main/composecoachmark/src/main/java/com/vivekgupta/composecoachmark/coachmark/RevealEffectSample.kt">RevealEffectSamples</a> and <a href="https://github.com/vivekgupta4Git/ComposeCoach/blob/main/composecoachmark/src/main/java/com/vivekgupta/composecoachmark/coachmark/CoachStyleSamples.kt">CoachStyleSamples</a>). Even you can implement these two interfaces in a single class to design your brand better</p><p>After the version 1.0.3, I encountered the <a href="https://github.com/canopas/compose-intro-showcase">canopas’s intro-show-case</a> library for showing coach marks which this library was really inspired by resulting in the implementation of a custom modifier and state management, this lead to library reaching its version of 2.0.0. So, I decided to give it a go by creating a canopas style coachmark, and in no time, I was ready with samples which I added in the sample files mentioned above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSrcruKSuK_YWDhkmoRlwA.gif" /></figure><p>I am happy to build my first library and to share it with the world. I welcome contributions to <a href="https://github.com/vivekgupta4Git/ComposeCoach">ComposeCoach</a>. If you have suggestions, feature requests, or bug reports, feel free to open an issue or create a pull request. Thanks for reading. Happy Coding !</p><p>For usage go to library’s page : <a href="https://github.com/vivekgupta4Git/ComposeCoach">https://github.com/vivekgupta4Git/ComposeCoach</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=745cd5725d7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lifecycle Aware ViewHolder]]></title>
            <link>https://medium.com/@itguru4all/lifecycle-aware-viewholder-7074a9a0049e?source=rss-51588d2ebab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7074a9a0049e</guid>
            <category><![CDATA[viewmodel]]></category>
            <category><![CDATA[lifecycle-aware-component]]></category>
            <category><![CDATA[recyclerview]]></category>
            <category><![CDATA[viewholder]]></category>
            <dc:creator><![CDATA[Vivek]]></dc:creator>
            <pubDate>Tue, 20 Sep 2022 21:32:52 GMT</pubDate>
            <atom:updated>2022-09-27T04:44:42.037Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, while working on an app, I came across a situation where I need to update the recyclerview&#39; s ItemView without notifying adapter about the changes in the list. I have nested recyclerview setup. Both recycler view gets its data from database. One recycler view gets consultation data and another recycler view gets medication details. As, in single consultation, doctor can prescribe lots of medicines; so, I needed a recyclerview to display details of each medication say how frequently, how much etc. For Simplicity, let say, the recyclerview which fetches consultation data is Outer Recyclerview and the other one which fetches medicines details Inner Recyclerview.</p><p>Let me describe the situation.</p><p>Outer recyclerview gets it data from database using coroutines. The parent of the recyclerview is a fragment and this fragment has a viewModel. This viewModel fetches the data asynchronously using coroutines and present the fetched list to lifecycle aware liveData observer. Once I get the list from this liveData, I set up the adapter of outer recyclerview. The ItemView of this recyclerview contains a button which enable me to fetch medicines details inside the ItemView. So, I wanted something which let me update ItemView itself instead of notifying adapter about changes which would require fetching database for data twice i.e. one for outer and other for inner recyclerview.</p><p><strong>Beginning of Problem :- Unmanaged Asynchronous work</strong></p><p>Inside OnBindViewHolder method of the outer recyclerview. I setup the inner recyclerview’ s adapter . To fetch the data inside OnBindViewHolder using coroutines, I created a CoroutineScope builder using IO dispatcher, I fetch the medicine details using aysnc builder, submitted the fetched list to the inner recyclerview’ s adapter And Ta Da!! Its working!</p><p>But wait Is it safe to use?</p><p>Let’s just read about CoroutineScope Builder a bit.</p><p><em>It’s create scope with one parameter and launch new </em><em>coroutine in it on </em><em>IO thread. Will be destroyed with object where it was launched. But you should manually call </em><em>.cancel() for </em><em>CoroutineScope if you want to end your work properly.</em></p><p>So, Its not safe! we should cancel coroutine manually if we want to end our work properly. What should we do? Let us see what we know. We know, recycler’s view gets recycled when it not near visible screen . There are two more methods that can tell when the view gets attached to the visible window and when the view gets detach to the visible window. Those methods are onViewAttachedToWindow () and OnViewDetachedFromWindow (). So, we can cancel the above CoroutineScope inside OnViewDetachedFromWindow () method. But the problem it’s the job of adapter to attach and detach the view. We can’t control when adapter will attach the view or detach the view (Although, setItemViewCacheSize () can be used but still it wouldn’t benefit us here as by default it is set to two, which is quite small). For example, suppose, Outer recycler view has 10 items in the list and visible items are only 4. When we scroll the list, the item view which are fetching list asynchronously will continue to fetch the list for inner recyclerview although some of them might have gone beyond visibility of the user. To manage this mess, we can try other coroutine scope builder such as lifecycle scope or viewModel scope but they aren’t available inside ViewHolder (remember, we are inside OnBindViewHolder’ s method) And please don’t say we could use GlobalScope coroutine builder here, as it is a blunder!!</p><p>So finally, I head to the solution of the above problem. A lifecycle aware ViewHolder.</p><p>We couldn’t use LifeCycleScope Coroutine builder in the above situation because ViewHolder doesn’t have own a lifecycle. But we have seen, it actually has a lifecycle. When visible to user , its lifecycle starts, when it goes out of the visibility area ( In cache area ), it lifecycle stage changed to pause and when it goes to recycledViewPool , it lifecycle stage changed to destroy. So we can make viewholder implement a lifecycleowner interface and implement its single method i.e. getLIfeCycle(). We need a lifecycle Registry object for that.</p><pre>class MyViewHolder(</pre><pre>    private val binding: DoctorPatientConsultDetailsBinding,</pre><pre>  ) : RecyclerView.ViewHolder(binding.<em>root</em>), LifecycleOwner {</pre><pre>    private lateinit var lifecycleRegistry: LifecycleRegistry</pre><pre>   override fun getLifecycle(): Lifecycle {</pre><pre>        return lifecycleRegistry</pre><pre>    }</pre><p>To initialize a LifeCycleRegistry object lets create a method initializeRegistry()</p><pre>private fun initializeRegistry() {</pre><pre>    lifecycleRegistry = LifecycleRegistry(this)</pre><pre>    lifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.<em>ON_CREATE</em>)</pre><pre>}</pre><p>Notice, how I used lifecycle registry handleLifeCycleEvent method to initialize ViewHolder lifecycle state to onCreate.</p><p>We need more methods for this ViewHolder such as onAttachViewHolder() and onDetachViewHolder() and onRecycled(). Let’s implement this.</p><pre>fun onAttachViewHolder() {</pre><pre>    lifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.<em>ON_START</em>)</pre><pre>}</pre><pre>fun onDetachViewHolder() {</pre><pre>    lifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.<em>ON_PAUSE</em>)</pre><pre>}</pre><pre>fun onRecycled() {</pre><pre>   <em>//destroy any previous lifecycle   </em>lifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.<em>ON_DESTROY</em>)</pre><pre>   / <em>/view is sent to recyclerViewPool,</em></pre><pre><em>    </em>intializeRegistry()</pre><pre>   }</pre><p>All above methods change lifecycle stage of ViewHolder. But ViewHolder’ s lifecycle is managed by Adapter itself. So, we need to link the above methods to adapter’s method.</p><p>Adapter’s method</p><pre>override fun onViewRecycled(holder: MyViewHolder) {</pre><pre>    super.onViewRecycled(holder)</pre><pre>holder.onRecycled()</pre><pre>}</pre><pre><br>override fun onViewAttachedToWindow(holder: MyViewHolder) {</pre><pre>    super.onViewAttachedToWindow(holder)</pre><pre>   holder.onAttachViewHolder()</pre><pre>}</pre><pre>override fun onViewDetachedFromWindow(holder: MyViewHolder) {</pre><pre>    super.onViewDetachedFromWindow(holder)</pre><pre>    holder.onDetachViewHolder()</pre><pre>}</pre><p>Congratulation! Your ViewHolder has life. You can now use lifecycleScope builder to run asynchronous work in a managed way. By making a viewholder a lifecycle aware, we opened up a new possibility i.e. ViewModel for each item of the recyclerview (Believe me, ViewModel is not only meant to handle configuration changes only).</p><p>Say, we have a liveData which will observe the fetched list. This liveData will present the fetched list to inner recyclerview. This liveData will reside inside our ItemViewModel, so we can use viewmodelScope builder to run our asynchronous work. But to observe a liveData , we need a component that owns a ViewModelStore. Let’s implement this!</p><pre>class MyViewHolder(</pre><pre>    private val binding: DoctorPatientConsultDetailsBinding,</pre><pre>    private val medicinesUseCases: PrescribedMedicinesUseCases,</pre><pre>) : RecyclerView.ViewHolder(binding.<em>root</em>), LifecycleOwner, ViewModelStoreOwner {</pre><pre>    private var viewModelStore: ViewModelStore = ViewModelStore()</pre><pre>    override fun getViewModelStore(): ViewModelStore = viewModelStore</pre><pre>    private lateinit var lifecycleRegistry: LifecycleRegistry</pre><pre>    private lateinit var viewModel: ItemViewModel</pre><pre>    init {</pre><pre>        intializeRegistry()</pre><pre>        initializeViewModel()</pre><pre>    }</pre><pre>    private fun initializeViewModel() {</pre><pre>        viewModel = ViewModelProvider(this,</pre><pre>            ItemViewModelFactory(medicinesUseCases))[ItemViewModel::class.<em>java</em>]</pre><pre>    }</pre><pre>    private fun intializeRegistry() {</pre><pre>        lifecycleRegistry = LifecycleRegistry(this)       lifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.<em>ON_CREATE</em>)</pre><pre>    }</pre><pre>    override fun getLifecycle(): Lifecycle {</pre><pre>      return lifecycleRegistry  <br>  }</pre><pre>    fun onAttachViewHolder() {</pre><pre>        lifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.<em>ON_START</em>)</pre><pre>    }</pre><pre>    fun onDetachViewHolder() {</pre><pre>        lifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.<em>ON_PAUSE</em>)</pre><pre>    }</pre><pre>    fun onRecycled() {</pre><pre>        <em>//Change lifecycle stage to destroy and clear the ViewModelStore</em></pre><pre><em>        </em>lifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.<em>ON_DESTROY</em>)</pre><pre>        viewModelStore.clear()</pre><pre>        <em>//view is sent to recyclerViewPool,</em></pre><pre><em>        //as view will be reused again, we need to re initialize view model //and create its lifecycle</em></pre><pre><em>        </em>initializeRegistry()</pre><pre>        initializeViewModel()</pre><pre>    }</pre><p>As, we can see, I have also, created a viewModel using ItemViewModelFactory. So, by implementing ViewModelStoreOwner, we have taken the responsibility of the viewModelStore. We create an object of viewModelStore which will hold our itemviewmodel. Then we create an entry in viewModelStore using ViewModelProvider. We will destroy this entry in viewModel store when this ViewHolder goes to recyclerViewPool and make ViewHolder ready for next use (see the onRecycled() method above). That’s it!</p><p>We have a fully lifecycle aware component ViewHolder And a Recyclerview whose each item view has its own viewmodel.</p><p><a href="https://youtube.com/shorts/Sc9HdJeW9CY?feature=share">ViewHolder with Lifecycle and ViewModel</a></p><p>Link to library</p><p><a href="https://jitpack.io/#vivekgupta4Git/AwakeningViewHolderLife">https://jitpack.io/#vivekgupta4Git/AwakeningViewHolderLife</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7074a9a0049e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>