I'm simply trying to draw some lines on in a Drawing Area but for some reason the lines always have some transparency even with Alpha set to 1(it seems about 50% ish).
I was using setLineWidth at 0.75 trying to get a "finer" line. I just set it to 1 and it seemed to reduce the transparency.. and if I set it to 2 then there is no transparency but is this because they are overlapping? I don't understand why the line with would modify the alpha in any way(except for > 1 which would be overlap).
cr.setLineWidth(2.0);
cr.setSourceRgba(0.0, 1.0, 0.0, 1.0);
//cr.setSourceRgb(0.0, 1.0, 0.0);
cr.moveTo(30, 100);
cr.lineTo(0, 0);
cr.stroke();
[There also seems to be something wrong with the code formatter... in the text all the above is aligned, in the display it is not.]
Any ideas? It's as if there is some global setting that set's the alpha then everything else is with respect to it. If I draw the same line over itself it gets darker(which is a solution but then requires me drawing everything more than once and doesn't explain what is going on).