I have a problem where I have to plot a ray from some source.At source the intensity should be strongest and should decrease with distance which is my xaxis.If I am using blue colour to plot my ray than it should be light blue at origin and should darken with distance.
I have attached a QCpcurve to QCustomplot.
There are two vectors say X and Y which I have to plot
Curve.setpen(blue);
Curve.setdata(X,Y);
Problem is that how to change the colour intensity as distance increases.
Please help
You can set a color gradient to QPen by displaying the look you want.