颜色的成功转换,这个就是颜色的一些操作。

magenta=color 255 255 0 255 -- create colors using constructors

aqua = [0, 6, 2] as color

aqua.v /= 2. -- reduce "strength" of aqua color
---这里是求出,.v 的最大的值,这个很重要。

aqua

aqua.alpha=128 -- set aqua to 50% opacity

aqua

lightGray=white/4 -- create light gray color by dividing

-- each component of white by 4

composite aqua lightGray -- composite light gray over aqua

random black white

你可能感兴趣的:(转换)