Class

HeContrast

Description

class He.Contrast : GObject.TypeInstance
{
  ref_count: volatile int
}

No description available.

Functions

he_contrast_ratio_of_ys

Contrast ratio is a measure of legibility, used to compare the lightness of two colors..

he_contrast_ratio_of_tones

Contrast ratio of two tones (T in HCT, L in Lab)..

he_contrast_lighter

Returns tone >= tone parameter that ensures the ratio with the input tone..

he_contrast_lighter_unsafe

Tone >= tone parameter that ensures ratio. Returns 100 if ratio cannot be achieved..

he_contrast_darker

Returns tone <= tone parameter that ensures the ratio with the input tone..

he_contrast_darker_unsafe

Tone <= tone parameter that ensures ratio. Returns 0 if ratio cannot be achieved..

Class structure

struct HeContrastClass {
  /* no available fields */
}

No description available.