RGBColor.toString

A string representation of a color. The color is output as a string in the following format: RGBColor(R=<value>, G=<value>, B=<value>, I=<value>), where R,G,B are the values ​​of the three color channels, and I is color brightness according to ITU 709.

class RGBColor
override
string
toString
()

Return Value

Type: string

String color representation.

Typical usage:

    import std.stdio : writeln;

    // Red color
    RGBColor color = new RGBColor(255, 0, 0); 
	color.writeln;

Meta