Link color in czml files

1. A concise explanation of the problem you’re experiencing.

I’m using .czml files to view links between sensors and other objects in Local 8080 Sandcastle. I’ve tried numerous rgba combinations but the only colors that seem to work are blue, yellow and red.

I’ve converted hex colors from the Cesium website to rgba for several colors but the don’t work. Can you help?

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

I’m creating the ‘.czml’ file using python:

outFPtr.write( " “width”:4,\n")

outFPtr.write( " “material”:{\n")

outFPtr.write( " “solidColor”:{\n")

outFPtr.write( " “color”:{\n")

outFPtr.write( " “rgba”:[\n")

outFPtr.write( " 127,255,0,1\n")

This should be:

CHARTREUSE

Hex - #7FFF00

rgba(127, 255, 0, 1)

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I need to use czml files in a local environment for stand alone capability. Using javascript is not an option in the short term.

4. The Cesium version you’re using, your operating system and browser.

Cesium v1.56

Windows 10

Colors specified as rgba in CZML use integers for red, green, blue, and alpha.

https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Color

So your values should be [127, 255, 0, 255].