set_source_color4ub


Description:


public void set_source_color4ub (uchar red, uchar green, uchar blue, uchar alpha)

This is a convenience function for creating a solid fill source material from the given color using unsigned bytes for each component.

Note:

Latest drawing apis all take an explicit CoglPipeline argument so this stack of CoglMaterial<!-- -- >s shouldn't be used.

This color will be used for any subsequent drawing operation.

The value for each component is an unsigned byte in the range between 0 and 255.

Parameters:

red

value of the red channel, between 0 and 255

green

value of the green channel, between 0 and 255

blue

value of the blue channel, between 0 and 255

alpha

value of the alpha channel, between 0 and 255


Namespace: Cogl
Package: cogl-1.0