set_sample


Description:

[ Version ( since = "3.2" ) ]
public void set_sample (double x, double y)

Sets a sample in a [enum@Gimp.

CurveType.FREE] this, with coordinates `(x, y)`.

Note that while the y coordinate will be stored exactly, the x coordinate will be rounded to the closest curve sample on the abscissa. The more sample was set with [method@Gimp.Curve.set_n_samples], the more precise the rounding will be.

Parameters:

this

the Curve.

x

the point abscissa on a `[0.0, 1.0]` range.

y

the point ordinate on a `[0.0, 1.0]` range.