set_source_color4f


Description:


public void set_source_color4f (float red, float green, float blue, float alpha)

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

Note:

Latest drawing apis all take an explicit CoglPipeline argument so this stack of CoglMaterials shouldn't be used.

This color will be used for any subsequent drawing operation.

The value for each component is a fixed point number in the range between 0 and typeof ( unichar2)1.0. If the values passed in are outside that range, they will be clamped.

Parameters:

red

value of the red channel, between 0 and typeof (unichar2) 1.0

green

value of the green channel, between 0 and typeof (unichar2) 1.0

blue

value of the blue channel, between 0 and typeof (unichar2) 1.0

alpha

value of the alpha channel, between 0 and typeof (unichar2) 1.0


Namespace: Cogl
Package: cogl-1.0



2022 vala-language.org