rgba转16进制: function RGBToHex(rgb){ var regexp = /[0-9]{0,3}/g; var re = rgb.match(regexp);//利用正则表达式去掉多余的部分,将rgb中的数字提取 var hexColor = "#"; var hex = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F']; for (var i = 0;
http://blog.csdn.net/tju355/article/details/6881389 借助于framebuffer,我们能够在console下面作很多事情.首先下载framebuffer的配置工具fbset:# apt-get install fbset 下载完毕后,配置文件/etc/fb.modes随之产生.比较简单的作法是用万能的vesafb,如果它被编译进了内核,如:Device Drivers -> Graphics support -> VESA VGA gra