Allen
Allen

Reputation: 222

Drawing circle with stroke and fill color

how to draw a circle using CGContextAddArc with different sroke color and fill color?

Upvotes: 3

Views: 6235

Answers (1)

Piotr Kalinowski
Piotr Kalinowski

Reputation: 2282

Wouldn't something like this work?

CGContextAddArc(ctx, x, y, 1.0, 0, 2 * Pi, 1); // Or is it 2 * M_PI?

CGContextSetFillColorWithColor(ctx, fillColor);
CGContextSetStrokeColorWithColor(ctx, strokeColor);
CGContextDrawPath(ctx, kCGPathFillStroke);

Upvotes: 7

Related Questions