Function

HarfBuzz-0.0HarfBuzzpaint_normalize_color_lineSince 14.2.0

  • Sorts stops by offset and rescales offsets into [0, 1] in place. Writes the original (min, max) to min / max so the caller can shift the gradient geometry (axis endpoints for linear, centers+radii for radial, start+end angles for sweep) to keep the rendered gradient visually unchanged after the rescale. Empty input is safe: both out-parameters set to 0.

    Parameters

    Returns [color_stop_t[], number, number]

    14.2.0