Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 

Color Codes

I am having difficulty figuring out what the correct color codes are, especially ColorFieldInterpolator. It seemed like I could just use hex color codes but that seemed to be completely off. I wanted this color (a gray). 

However, when I use it as a keyValue in the ColorFieldInterpolator, I am given shades of blue.

Is there a color dictionary or a way to convert colors to this 'format'? What format are these color codes?

Thanks
0 Kudos
2 Replies
renojim
Level 8

Re: Color Codes

I haven't used it, but are you giving a full 32 bit value? You should be using 0x585858FF for the keyValue.

-JT
0 Kudos

Re: Color Codes

I have determined that the colors are in the format:

0xRRGGBBAA

Not sure what the '0x' represents, but the last two digits are the alpha values of the color (opacity).

I wrote this forum post for future reference.
0 Kudos