<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.571428298950195px">hi!</span><div style="font-family:arial,sans-serif;font-size:12.571428298950195px"><br></div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">
i have this scenario:</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">i have a column in my postgis table which contains a double representing a percentage.</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">i want to color my polygons in a gradient fashion based on that number.</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">the docs states three ways to specify color:</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">1. three [1-255] numbers</div>
<div style="font-family:arial,sans-serif;font-size:12.571428298950195px">2. hex string</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">3. [attribute]</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">but the attribute must be a string by itself in the same format as options 1 or 2.</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">how can i achieve something like </div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px"><br></div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">
COLOR [percentage]*255 0 0</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">or</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">COLOR [percentage] 0 0</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">
if percentageis already 0..255</div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px"><br></div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">for a red gradient for example? </div>
<div style="font-family:arial,sans-serif;font-size:12.571428298950195px"><br></div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">thanks allot!</div></div>