I assume you have worked out a way to determine your bandwidth and the question you are asking is how to turn that value into the colors you want on the LEDs.

If that is the case, then assuming you get a value back from your bandwidth used algorithm between 0 and 255 (8-bit precision)...

I haven't tried this, but my thoughts are this:

Your values are RGB.

Green = 0,255,0

Yellow = 255,255,0

Red = 255,0,0

So, your calculated RGB values for 8-bit source precision are:

0 = 0,255,0

128 = 255,255,0

255 = 255,0,0

So, for source values 0-127, set RGB as (value * 2, 255, 0)

For source values 127-255, set RGB as ((value*2)-255), (255-value)*2, 0)