Function

Pidgincolor_hue_for_text

unstable since: 3.0

Declaration [src]

float
pidgin_color_hue_for_text (
  const char* text
)

Description [src]

Calculates a hue to use for the given text.

This implements Section 5.1 of XEP-0392 to determine the hue.

Available since: 3.0

Parameters

text

Type: const char*

The text.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: float

The hue in the range of 0.0 to 360.0.