def _create_coefficients(self, cutoffs: list[float], channel: list[int]) -> CoeffSequence:
        """Return coefficients for interpolating between cutoffs on a color channel."""

        coeffs: list[GradientCoefficients] = []
        for (prev_cutoff, crnt_cutoff), (prev_color, crnt_color) in zip(
            pairwise(cutoffs), pairwise(channel)
        ):
            cutoff_diff = crnt_cutoff - prev_cutoff
            color_scalar = (crnt_color - prev_color) / cutoff_diff

            coeffs.append(
                {"scalar": color_scalar, "intercept": prev_color, "starting": prev_cutoff}
            )

        return self.cls_coeff_sequence(coeffs)
Return coefficients for interpolating between cutoffs on a color channel.
great_tables/_data_color/palettes.py