to_string


Description:

public string to_string ()

Returns a textual specification of this in the form `rgb (r, g, b)` or `rgba (r, g, b, a)`, where “r”, “g”, “b” and “a” represent the red, green, blue and alpha values respectively.

r, g, and b are represented as integers in the range 0 to 255, and a is represented as floating point value in the range 0 to 1.

Note:

that this string representation may lose some precision, since r, g and b are represented as 8-bit integers. If this is a concern, you should use a different representation.

This returns the same string as a Gdk.RGBA would return in Gdk.RGBA.to_string

Returns:

the text string




2022 vala-language.org