Import line: | Cogl = imports.gi.Cogl; |
GIR File: | Cogl-1.0.gir |
C documentation: | CoglColor |
Struct : | Color |
Properties | Defined By | |
---|---|---|
alpha : guint8
read only
|
Cogl.Color | |
blue : guint8
read only
|
Cogl.Color | |
green : guint8
read only
|
Cogl.Color | |
padding0 : guint32
read only
|
Cogl.Color | |
padding1 : guint32
read only
|
Cogl.Color | |
padding2 : guint32
read only
|
Cogl.Color | |
red : guint8
read only
|
Cogl.Color |
Method / Constructor | Defined By | |
---|---|---|
new Cogl.Color
()
Create a new Cogl.Color
Create a new Cogl.Color
|
||
free
()
:
none
Frees the resources allocated by cogl_color_new() and cogl_color_copy()
Frees the resources allocated by cogl_color_new() and cogl_color_copy()
|
Cogl.Color | |
get_alpha
()
:
gfloat
Retrieves the alpha channel of color as a fixed point
value between 0 and %1.0.
Retrieves the alpha channel of color as a fixed point
value between 0 and %1.0.
|
Cogl.Color | |
get_alpha_byte
()
:
guint8
Retrieves the alpha channel of color as a byte value
between 0 and 255
Retrieves the alpha channel of color as a byte value
between 0 and 255
|
Cogl.Color | |
get_alpha_float
()
:
gfloat
Retrieves the alpha channel of color as a floating point
value between 0.0 and 1.0
Retrieves the alpha channel of color as a floating point
value between 0.0 and 1.0
|
Cogl.Color | |
get_blue
()
:
gfloat
Retrieves the blue channel of color as a fixed point
value between 0 and %1.0.
Retrieves the blue channel of color as a fixed point
value between 0 and %1.0.
|
Cogl.Color | |
get_blue_byte
()
:
guint8
Retrieves the blue channel of color as a byte value
between 0 and 255
Retrieves the blue channel of color as a byte value
between 0 and 255
|
Cogl.Color | |
get_blue_float
()
:
gfloat
Retrieves the blue channel of color as a floating point
value between 0.0 and 1.0
Retrieves the blue channel of color as a floating point
value between 0.0 and 1.0
|
Cogl.Color | |
get_green
()
:
gfloat
Retrieves the green channel of color as a fixed point
value between 0 and %1.0.
Retrieves the green channel of color as a fixed point
value between 0 and %1.0.
|
Cogl.Color | |
get_green_byte
()
:
guint8
Retrieves the green channel of color as a byte value
between 0 and 255
Retrieves the green channel of color as a byte value
between 0 and 255
|
Cogl.Color | |
get_green_float
()
:
gfloat
Retrieves the green channel of color as a floating point
value between 0.0 and 1.0
Retrieves the green channel of color as a floating point
value between 0.0 and 1.0
|
Cogl.Color | |
get_red
()
:
gfloat
Retrieves the red channel of color as a fixed point
value between 0 and %1.0.
Retrieves the red channel of color as a fixed point
value between 0 and %1.0.
|
Cogl.Color | |
get_red_byte
()
:
guint8
Retrieves the red channel of color as a byte value
between 0 and 255
Retrieves the red channel of color as a byte value
between 0 and 255
|
Cogl.Color | |
get_red_float
()
:
gfloat
Retrieves the red channel of color as a floating point
value between 0.0 and 1.0
Retrieves the red channel of color as a floating point
value between 0.0 and 1.0
|
Cogl.Color | |
Sets the values of the passed channels into a CoglColor
Sets the values of the passed channels into a CoglColor
|
Cogl.Color | |
init_from_4fv
(gfloat color_array)
:
none
Sets the values of the passed channels into a CoglColor
Sets the values of the passed channels into a CoglColor
|
Cogl.Color | |
Sets the values of the passed channels into a CoglColor.
Sets the values of the passed channels into a CoglColor.
|
Cogl.Color | |
premultiply
()
:
none
Converts a non-premultiplied color to a pre-multiplied color.
Converts a non-premultiplied color to a pre-multiplied color. For
example, semi-transparent red is (1.0, 0, 0, 0.5) when non-premultiplied and (0.5, 0, 0, 0.5) when premultiplied.
|
Cogl.Color | |
set_alpha
(gfloat alpha)
:
none
Sets the alpha channel of color to alpha.
Sets the alpha channel of color to alpha.
|
Cogl.Color | |
set_alpha_byte
(guint8 alpha)
:
none
Sets the alpha channel of color to alpha.
Sets the alpha channel of color to alpha.
|
Cogl.Color | |
set_alpha_float
(gfloat alpha)
:
none
Sets the alpha channel of color to alpha.
Sets the alpha channel of color to alpha.
|
Cogl.Color | |
set_blue
(gfloat blue)
:
none
Sets the blue channel of color to blue.
Sets the blue channel of color to blue.
|
Cogl.Color | |
set_blue_byte
(guint8 blue)
:
none
Sets the blue channel of color to blue.
Sets the blue channel of color to blue.
|
Cogl.Color | |
set_blue_float
(gfloat blue)
:
none
Sets the blue channel of color to blue.
Sets the blue channel of color to blue.
|
Cogl.Color | |
Sets the values of the passed channels into a CoglColor
Sets the values of the passed channels into a CoglColor
|
Cogl.Color | |
Sets the values of the passed channels into a CoglColor.
Sets the values of the passed channels into a CoglColor.
|
Cogl.Color | |
set_green
(gfloat green)
:
none
Sets the green channel of color to green.
Sets the green channel of color to green.
|
Cogl.Color | |
set_green_byte
(guint8 green)
:
none
Sets the green channel of color to green.
Sets the green channel of color to green.
|
Cogl.Color | |
set_green_float
(gfloat green)
:
none
Sets the green channel of color to green.
Sets the green channel of color to green.
|
Cogl.Color | |
set_red
(gfloat red)
:
none
Sets the red channel of color to red.
Sets the red channel of color to red.
|
Cogl.Color | |
set_red_byte
(guint8 red)
:
none
Sets the red channel of color to red.
Sets the red channel of color to red.
|
Cogl.Color | |
set_red_float
(gfloat red)
:
none
Sets the red channel of color to red.
Sets the red channel of color to red.
|
Cogl.Color | |
unpremultiply
()
:
none
Converts a pre-multiplied color to a non-premultiplied color.
Converts a pre-multiplied color to a non-premultiplied color. For
example, semi-transparent red is (0.5, 0, 0, 0.5) when premultiplied and (1.0, 0, 0, 0.5) when non-premultiplied.
|
Cogl.Color |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Cogl
Method |
Clears all the auxiliary buffers identified in the buffers mask, and if
that includes the color buffer then the specified color is used. |
Cogl
Method |
Enables fogging.
|
Cogl
Method |
Cogl.set_source_color
(Color color)
:
none
This is a convenience function for creating a solid fill source material
from the given color. |
Cogl.Material
Method |
get_ambient
(Color ambient)
:
none
Retrieves the current ambient color for material
|
Cogl.Material
Method |
get_color
()
:
Cogl.Color
Retrieves the current material color.
|
Cogl.Material
Method |
get_diffuse
(Color diffuse)
:
none
Retrieves the current diffuse color for material
|
Cogl.Material
Method |
get_emission
(Color emission)
:
none
Retrieves the materials current emission color.
|
Cogl.Material
Method |
get_specular
(Color specular)
:
none
Retrieves the materials current specular color.
|
Cogl.Material
Method |
set_ambient
(Color ambient)
:
none
Sets the material's ambient color, in the standard OpenGL lighting
model. |
Cogl.Material
Method |
set_ambient_and_diffuse
(Color color)
:
none
Conveniently sets the diffuse and ambient color of material at the same
time. |
Cogl.Material
Method |
set_blend_constant
(Color constant_color)
:
none
When blending is setup to reference a CONSTANT blend factor then
blending will depend on the constant set with this function. |
Cogl.Material
Method |
set_color
(Color color)
:
none
Sets the basic color of the material, used when no lighting is enabled.
|
Cogl.Material
Method |
set_diffuse
(Color diffuse)
:
none
Sets the material's diffuse color, in the standard OpenGL lighting
model. |
Cogl.Material
Method |
set_emission
(Color emission)
:
none
Sets the material's emissive color, in the standard OpenGL lighting
model. |
Cogl.Material
Method |
When you are using the 'CONSTANT' color source in a layer combine
description then you can use this function to define its value. |
Cogl.Material
Method |
set_specular
(Color specular)
:
none
Sets the material's specular color, in the standard OpenGL lighting
model. |
Cogl.Pipeline
Method |
get_ambient
(Color ambient)
:
none
|
Cogl.Pipeline
Method |
get_color
()
:
Cogl.Color
|
Cogl.Pipeline
Method |
get_diffuse
(Color diffuse)
:
none
|
Cogl.Pipeline
Method |
get_emission
(Color emission)
:
none
|
Cogl.Pipeline
Method |
get_specular
(Color specular)
:
none
|
Cogl.Pipeline
Method |
set_ambient
(Color ambient)
:
none
|
Cogl.Pipeline
Method |
set_ambient_and_diffuse
(Color color)
:
none
|
Cogl.Pipeline
Method |
set_blend_constant
(Color constant_color)
:
none
|
Cogl.Pipeline
Method |
set_color
(Color color)
:
none
|
Cogl.Pipeline
Method |
set_diffuse
(Color diffuse)
:
none
|
Cogl.Pipeline
Method |
set_emission
(Color emission)
:
none
|
Cogl.Pipeline
Method |
|
Cogl.Pipeline
Method |
set_specular
(Color specular)
:
none
|