checks_get_colors


Description:


[ Version ( since = "3.0" ) ]
public void checks_get_colors (CheckType type, ref Color color1, ref Color color2)

Retrieves the colors to use when drawing a checkerboard for a certain CheckType and custom colors.

If type is gimp_check_type_custom_checks, then color1 and color2 will remain untouched, which means you must initialize them to the values expected for custom checks.

To obtain the user-set colors in Preferences, just call:

GeglColor *color1 = gimp_check_custom_color1 ();
GeglColor *color2 = gimp_check_custom_color2 ();
gimp_checks_get_colors (gimp_check_type (), &color1, &color2);

Parameters:

type

the checkerboard type

color1

current custom color and return location for the first color.

color2

current custom color and return location for the second color.


Namespace: Gimp
Package: gimp-3.0