# Gimp.Gradient.prototype.get_custom_samples

    function get_custom_samples(positions: Array(Number(gdouble)), reverse: Boolean): [ok: Boolean, color_samples: Array(Number(gdouble))] {
        // Gjs wrapper for gimp_gradient_get_custom_samples()
    }

Sample the gradient in custom positions.

Samples the color of the gradient at positions from a list. The left endpoint of the gradient corresponds to position 0.0, and the right endpoint corresponds to 1.0. Returns a list of floating-point values, four for each sample (RGBA.)

Since 2.2

positions

  The list of positions to sample along the gradient.

reverse

  Use the reverse gradient.

ok

  TRUE on success.

color_samples

  Color samples: { R1, G1, B1, A1, ..., Rn, Gn, Bn, An }.