Function

Hemisc_fix_fg_contrast

Declaration

gdouble*
he_misc_fix_fg_contrast (
  gdouble red,
  gdouble green,
  gdouble blue,
  gdouble red2,
  gdouble green2,
  gdouble blue2,
  gint* result_length1
)

Description [src]

Gives a contrasting foreground color for a given background color.

Since: 1.0.

Parameters

red

Type: gdouble

The red component of the background color. .

green

Type: gdouble

The green component of the background color. .

blue

Type: gdouble

The blue component of the background color. .

red2

Type: gdouble

The red component of the foreground color. .

green2

Type: gdouble

The green component of the foreground color. .

blue2

Type: gdouble

The blue component of the foreground color. .

result_length1

Type: gint*

No description available.

The argument will be set by the function.

Return value

Type: An array of gdouble

No description available.

The length of the array is in the result_length1 argument.
The caller of the function takes ownership of the data, and is responsible for freeing it.