MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / setColorStopAt

Method setColorStopAt

3rdparty/qcustomplot/qcustomplot.cpp:16628–16632  ·  view source on GitHub ↗

! Sets the \a color the gradient will have at the specified \a position (from 0 to 1). In between these color stops, the color is interpolated according to \ref setColorInterpolation. \see setColorStops, clearColorStops */

Source from the content-addressed store, hash-verified

16626 \see setColorStops, clearColorStops
16627*/
16628void QCPColorGradient::setColorStopAt(double position, const QColor &color)
16629{
16630 mColorStops.insert(position, color);
16631 mColorBufferInvalidated = true;
16632}
16633
16634/*!
16635 Sets whether the colors in between the configured color stops (see \ref setColorStopAt) shall be

Callers 1

invertedMethod · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected