I am trying to change alpha of the gradients I am using below my scatter plot:
//add gradient to line
CPTColor *underLineGradientStartColor = [CPTColor colorWithComponentRed:CPTFloat(0.4) green:CPTFloat(0.2) blue:CPTFloat(0.9) alpha:CPTFloat(0.6)];
CPTColor *underLineGradientEndColor = [CPTColor colorWithComponentRed:CPTFloat(0.4) green:CPTFloat(0.2) blue:CPTFloat(0.9) alpha:CPTFloat(1.0)];
CPTGradient *underLineGradient = [CPTGradient gradientWithBeginningColor:underLineGradientStartColor endingColor:underLineGradientEndColor];
underLineGradient.angle = -90.0;
CPTFill *underLineGradientFill = [CPTFill fillWithGradient:underLineGradient];
dataSourceLinePlot.areaFill = underLineGradientFill;
To set alpha I would like to perform the opposite operation ->get gradient->get start/end colours and change alpha of them. CPTFill, unfortunately, doesn't have any properties that would be useful. How to change the alpha?