R RGB color
2015-07-24 16:34
381 查看
所有的颜色都是基于red, blue, green 调出来的。如果想知道你需要的颜色,在R中输入col2rgb('specific color', alpha=T)
详细说明:
It's the usual #RRGGBB color notation, w/ the last two digits
apparently defining the amount of opacity.
#0000FFFF is blue w/ full opacity
To figure out how to define your color with RGB notation, use a mix of
col2rgb and rgb functions:
R> col2rgb('blue', alpha=T)
[,1]
red 0
green 0
blue 255
alpha 255
R> rgb(red=0, green=0, blue=255, alpha=255, max=255)
[1] "#0000FFFF"
Play with different values of alpha (0 < alpha <= 255) in the above
call to get different levels of opacity for your points.
R> rgb(red=0, green=0, blue=255, alpha=10, max=255)
[1] "#0000FF0A"
详细说明:
It's the usual #RRGGBB color notation, w/ the last two digits
apparently defining the amount of opacity.
#0000FFFF is blue w/ full opacity
To figure out how to define your color with RGB notation, use a mix of
col2rgb and rgb functions:
R> col2rgb('blue', alpha=T)
[,1]
red 0
green 0
blue 255
alpha 255
R> rgb(red=0, green=0, blue=255, alpha=255, max=255)
[1] "#0000FFFF"
Play with different values of alpha (0 < alpha <= 255) in the above
call to get different levels of opacity for your points.
R> rgb(red=0, green=0, blue=255, alpha=10, max=255)
[1] "#0000FF0A"
相关文章推荐
- zoj1796
- highcharts作图
- 中文乱码问题解决方案汇总
- 反转单链表的几种方法
- hdu 5288 (小技巧)
- Java、HTML、CSS、JSP、JavaScript注释语法
- [LeetCode]Integer to Roman
- 核典型关联分析(KCCA)算法原理
- Linux网络编程之使用TCP传输文件
- 如何取得Spring管理的bean (请用第3种方法):
- 【源代码】java.util.Stack & Queue
- uva 10594 Data Flow (最小费最大流+题目给的数据有错)
- Codeforces Round #313 (Div. 2) C Gerald's Hexagon 计数
- HTML DOM submit() 方法
- jquery ajax备用
- (转)反转单链表的几种方法
- 统计难题
- Espresso——Android测试工具Espresso简介
- zoj1715
- android布局-GridLayout