<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Issue with computed color function for ArcColor of gauge - Simhub General				            </title>
            <link>https://www.simhubdash.com/community-2/simhub-support/issue-with-computed-color-function-for-arccolor-of-gauge/</link>
            <description>All about SimHub!</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 07 Jun 2026 20:54:32 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Issue with computed color function for ArcColor of gauge</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/issue-with-computed-color-function-for-arccolor-of-gauge/#post-7281</link>
                        <pubDate>Sat, 08 Jul 2023 15:08:39 +0000</pubDate>
                        <description><![CDATA[SOLVED
Just incase anyone else ends up here.
First some Context: I have a linear gauge that calculates how much distance is left on a stage in DR2. When I get to 2500 Meters from the finis...]]></description>
                        <content:encoded><![CDATA[<p><strong>SOLVED</strong></p>
<p>Just incase anyone else ends up here.</p>
<p>First some Context: I have a linear gauge that calculates how much distance is left on a stage in DR2. When I get to 2500 Meters from the finish I want the gauge to go from red to green letting me know that if I do catch a puncture it's faster to just drive it out than to swap it. The distance is not 100% but you get the idea. It's a quick visual cue. Now I didn't want a hard change as if it's Tarmac then maybe 3000 meters it still fine but if it's snow and rwd car, then maybe 1500 meters would be the distance. So I wanted a gradient letting me know I'm at the threshold. </p>
<p><span>-</span><span></span></p>
<p>Gives me the the distance remaining in meters. So I set the start color at 30000 Meters (catches all stage lengths) the midpoint at 2500 and the end at 0. </p>
<p> </p>
<p><strong>Solution: </strong></p>
<p>It seems like the Gauge Color Binding cannot calculate downward. The start color needs to be less then the end color for it to work. Swap the Math!</p>
<p> <span></span><span>-</span><span></span></p>
<p>This will give you a negative number that will approach 0 as you get towards the end. The calculated number is less then the end color so now the Gauge works as intended.</p>
<p> </p>
<p>Hope this helps anyone else finding themselves stuck for way longer than I'm willing to admit. </p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>mac_fodder</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/issue-with-computed-color-function-for-arccolor-of-gauge/#post-7281</guid>
                    </item>
				                    <item>
                        <title>RE: Issue with computed color function for ArcColor of gauge</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/issue-with-computed-color-function-for-arccolor-of-gauge/#post-7280</link>
                        <pubDate>Sat, 08 Jul 2023 14:40:56 +0000</pubDate>
                        <description><![CDATA[I know this is a long shot, but did you ever figure out your issue? I&#039;m having the same thing. The RAW result is working as it should, but the color will not shift from the start color even ...]]></description>
                        <content:encoded><![CDATA[<p>I know this is a long shot, but did you ever figure out your issue? I'm having the same thing. The RAW result is working as it should, but the color will not shift from the start color even as the raw results changes. </p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>mac_fodder</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/issue-with-computed-color-function-for-arccolor-of-gauge/#post-7280</guid>
                    </item>
				                    <item>
                        <title>Issue with computed color function for ArcColor of gauge</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/issue-with-computed-color-function-for-arccolor-of-gauge/#post-3510</link>
                        <pubDate>Tue, 19 Oct 2021 00:41:15 +0000</pubDate>
                        <description><![CDATA[Hi, I&#039;m trying to change the color of the arc of a gauge and it doesn&#039;t seem to want to work. The code is working everywhere else I want it applied, but doesn&#039;t seem to want to change the Ar...]]></description>
                        <content:encoded><![CDATA[<p>Hi, I'm trying to change the color of the arc of a gauge and it doesn't seem to want to work. The code is working everywhere else I want it applied, but doesn't seem to want to change the Arc color itself.</p>
<p>Here's the code:</p>
<pre contenteditable="false">if(,1,0)</pre>
<p><span style="color: #008b8b;font-weight: bold"> </span></p>
<p>The raw results look correct (Engine electric on in game results in a 1, off results in a 0).</p>
<p>I have it set to Computed Color option.</p>
<p>0 = the darker color, 1 = the lighter color I want displayed when engine is on.</p>
<p><a href="https://i.imgur.com/Qbr96LG.png" target="_blank" rel="noopener">Screenshot of settings for color</a></p>
<p>I've tried in Javascript as well and no dice.</p>
<p>Anyone have any ideas? Does the computed color just not work for Arc? As I said, this bit of code works fine for computed color on other elements of the gauge (the ticks mainly), but the Arc seems stubborn.</p>
<p>Thanks!</p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>fugazicoverband</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/issue-with-computed-color-function-for-arccolor-of-gauge/#post-3510</guid>
                    </item>
							        </channel>
        </rss>
		