Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Colors 我怎样才能知道这个代码中有什么颜色?_Colors_Hex_Arago - Fatal编程技术网

Colors 我怎样才能知道这个代码中有什么颜色?

Colors 我怎样才能知道这个代码中有什么颜色?,colors,hex,arago,Colors,Hex,Arago,我正在研制TI AM335x EVM。它使用Arago Linux发行版 现在我想修改该设备的启动屏幕,它有一个名为的用户空间应用程序,有一个定义颜色的文件,该文件中的代码如下: PSFlash颜色。h: /* This is the overall background color */ #define PSPLASH_BACKGROUND_COLOR 0xec,0xec,0xe1 /* This is the color of any text output */ #define PSPL

我正在研制TI AM335x EVM。它使用Arago Linux发行版

现在我想修改该设备的启动屏幕,它有一个名为的用户空间应用程序,有一个定义颜色的文件,该文件中的代码如下:

PSFlash颜色。h:

/* This is the overall background color */
#define PSPLASH_BACKGROUND_COLOR 0xec,0xec,0xe1

/* This is the color of any text output */
#define PSPLASH_TEXT_COLOR 0x6d,0x6d,0x70

/* This is the color of the progress bar indicator */
#define PSPLASH_BAR_COLOR 0x6d,0x6d,0x70

/* This is the color of the progress bar background */
#define PSPLASH_BAR_BACKGROUND_COLOR 0xec,0xec,0xe1 
我得到这些是组成RGB值的十六进制代码,基于事实,我认为它们可能是3组字节


我想弄清楚的是这些颜色到底是什么,例如,我在任何地方都找不到
0xec0xec0xe1
。我怎样才能知道这些值代表什么颜色

0x在数字之前表示它是用十六进制写的,所以只需将十六进制数转换为十进制,就可以得到标准的0-255 rgb值

0xec,0xec,0xe1  ->  ec,ec,e1  -> 236,236,225
0x6d,0x6d,0x70  ->  6d,6d,70  -> 109,109,112
是一个很好的十六进制到十进制的转换,以防你的数学不好


并且是值到颜色的转换器,只需将颜色的值放在文本字段中,颜色就会出现

这些值是十六进制的。 如果我把它们转换成十进制,并把它们放在绘图应用程序中,我会得到一种颜色。 例如: 0xEC 0xEC 0xE1->236236225->我得到一个浅灰色