Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Remove initial stroke of ofPath?

$
0
0

@cuinjune wrote:

Hi, I would like to draw a donut shape that can toggle between filled and unfilled.

I could make the filled donut shape using ofPath but if I unfill the shape, and set the stroke width, a line appears and I would like to remove this line if possible.

Here's my code and the resulting image below.

ofPath circle;
circle.setStrokeWidth(2);
circle.setFilled(false);
circle.circle(ofGetWidth()/2, ofGetHeight()/2, 100);
circle.circle(ofGetWidth()/2, ofGetHeight()/2, 120);

circle.draw();

Thank you in advance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles