Function

Hemisc_contrast_ratio

Declaration

gdouble
he_misc_contrast_ratio (
  gdouble red,
  gdouble green,
  gdouble blue,
  gdouble red2,
  gdouble green2,
  gdouble blue2
)

Description [src]

Gives the contrast ratio between two colors.

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. .

Return value

Type: gdouble

No description available.