pygame.Color(name): Return Color pygame.Color(r, g, b, a): Return
Color pygame.Color(rgbvalue): Return Color pygame object for color
representations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__index__(...)
x[y:z] <==> x[y.__index__():z.__index__()] |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a new object with type S, a subtype of T
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
correct_gamma(...)
Color.correct_gamma (gamma): Return Color Applies a certain gamma
value to the Color. |
source code
|
|
|
normalize(...)
Color.normalize(): Return tuple Returns the normalized RGBA values of
the Color. |
source code
|
|
|
set_length(Color,
len)
Set the number of elements in the Color to 1,2,3, or 4. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
a
Color.a: Return int Gets or sets the alpha value of the Color.
|
|
b
Color.b: Return int Gets or sets the blue value of the Color.
|
|
cmy
Color.cmy: Return tuple Gets or sets the CMY representation of the
Color.
|
|
g
Color.g: Return int Gets or sets the green value of the Color.
|
|
hsla
Color.hsla: Return tuple Gets or sets the HSLA representation of the
Color.
|
|
hsva
Color.hsva: Return tuple Gets or sets the HSVA representation of the
Color.
|
|
i1i2i3
Color.i1i2i3: Return tuple Gets or sets the I1I2I3 representation of
the Color.
|
|
r
Color.r: Return int Gets or sets the red value of the Color.
|
Inherited from object :
__class__
|