MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / setColorStops

Method setColorStops

qcustomplot.cpp:15855–15859  ·  view source on GitHub ↗

! Sets at which positions from 0 to 1 which color shall occur. The positions are the keys, the colors are the values of the passed QMap \a colorStops. In between these color stops, the color is interpolated according to \ref setColorInterpolation. A more convenient way to create a custom gradient may be to clear all color stops with \ref clearColorStops (or creating a new, empty QCPCo

Source from the content-addressed store, hash-verified

15853 \see clearColorStops
15854*/
15855void QCPColorGradient::setColorStops(const QMap<double, QColor> &colorStops)
15856{
15857 mColorStops = colorStops;
15858 mColorBufferInvalidated = true;
15859}
15860
15861/*!
15862 Sets the \a color the gradient will have at the specified \a position (from 0 to 1). In between

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected