Hi Cary,
Thank you very much for your quick reply!
The paths are made up of lines, and the paths might be overlapping. The color does not have to have transparency, however it would be nice. The paths are not filled, they simple lines. The number of different colors is usually 12 (to distinguish the different paths visually).
This is kind of what we do (without the nonsene paths ;-) ):
void draw(SkCanvas* canvas) {
for(int i = 0; i < 1000; i++) {
SkPaint p;
p.setAntiAlias(true);
p.setStyle(SkPaint::kStroke_Style);
SkPath path;
SkScalar x = 0.0 + 2*i;
SkScalar y = 0.0;
if(i%2)
p.setColor(SK_ColorRED);
else
p.setColor(SK_ColorBLUE);
path.moveTo(x, y);
for (int j = 1; j < 100; j++) {
path.lineTo(x+j, y + 0.5*j);
}
canvas->drawPath(path,p);
}
}
So we have a paint object for each path, and draw each path separately.
I hope this made my question clearer.
Thank you!