set_from_4ub


Description:

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

Sets the values of the passed channels into a Color.

Note:

Use cogl_color_init_from_4ub instead.

Parameters:

this

A pointer to a Color to initialize

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