The physical.color module¶
The physical.color module defines a few colors, which can be used to color things. It also defines an RGB data type, which allows you to conveniently define your own new colors.
-
class
physical.color.RGB(r, g, b)¶ A color stored in the RGB color space.
-
rgb()¶ Return a list containing the RGB triple.
-
-
physical.color.red= color.RGB(1,0,0)¶ The color red
-
physical.color.green= color.RGB(0,1,0)¶ The color green
-
physical.color.blue= color.RGB(0,0,1)¶ The color blue
-
physical.color.yellow= color.RGB(1,1,0)¶ The color yellow
-
physical.color.cyan= color.RGB(0,1,1)¶ The color cyan
-
physical.color.magenta= color.RGB(1,0,1)¶ The color magenta
-
physical.color.black= color.RGB(0,0,0)¶ The color black
-
physical.color.gray= color.RGB(0.5,0.5,0.5)¶ The color gray
-
physical.color.white= color.RGB(1,1,1)¶ The color white