void draw(SkCanvas* canvas) {
canvas->drawColor(SK_ColorWHITE);
SkPaint paint;
paint.setStyle(SkPaint::kStroke_Style);
paint.setStrokeWidth(.05);
paint.setColor(0xff1f78b4);
paint.setAntiAlias(true);
paint.setStrokeCap(SkPaint::kRound_Cap);
SkPaint paint2(paint);
paint2.setStyle(SkPaint::kFill_Style);
paint2.setColor(0xfff10600);
SkRect rect;
rect.setXYWH(.05, .05, 1., 1.);
SkPath path;
path.addOval(rect, SkPath::kCW_Direction);
SkPath path2;
paint.getFillPath(path, &path2);
canvas->scale(200., 200.);
canvas->drawPath(path, paint);
canvas->drawPath(path2, paint2);
}--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.