-
Notifications
You must be signed in to change notification settings - Fork 207
Color.ag
xu_whale edited this page Sep 7, 2020
·
1 revision
Color相关
Color() 构造方法
Color(number red, number green, number blue) 构造方法
Color(number hex) 构造方法
Color(number red, number green, number blue, number alpha) 构造方法
hex(number number)
设置除alpha通道外的颜色值, 16进制
hex()
除透明通道外的颜色值, 16进制
alpha(number alpha)
设置透明通道值,0.0 ~ 1.0
alpha()
获取透明通道值,0.0 ~ 1.0
red(number redNum)
设置红色通道数值, 0 ~ 255
red()
获取红色通道数值, 0 ~ 255
green(number greenNum)
设置绿色通道值, 0 ~ 255
green()
获取绿色通道值, 0 ~ 255
blue(number blueNum)
设置蓝色通道值, 0 ~ 255
blue()
获取蓝色通道值,0 ~ 255
setHexA(number hex, number alpha)
通过十六进制数字、透明通道设置颜色
setRGBA(number redNum, number greenNum, number blueNum, number alpha)
设置各颜色通道及透明通道值
setColor(string colorText)
以字符串设置颜色,透明通道值在末尾
setAColor(string colorText)
以字符串设置颜色,透明通道值在起始
clear()
设置为透明颜色