📜  python rgb 颜色 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:40.898000             🧑  作者: Mango

代码示例2
# In Python, colors can just be stored as 3-Tuples of (Red, Green, Blue).
red = (255,0,0)
green = (0,255,0)
blue = (0,0,255)

# Many libraries work with these.
# You can also, of course, define your own functions to work with them.