openframeworks / openframeworks/openFrameworks
Does ofPath support drawing both fill and stroke at the same time?
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I can't tell from the ofPath api if you can draw both fill and stroke simultaneously. Regular ofGrpahics calls do not support this ...
Also, what happens if you:
path.setFilled(false);
path.setStrokeWidth(0);
Is nothing drawn? If the api supports drawing both fill and outline, then it would make sense that setting the stroke width to 0 here would automatically set fill to true ... so at least something is drawn. Same conversely ...
Edit: In fact, having a stroke/fill approach does not match the ofGraphics api. Maybe it makes sense to just have setColor(), fill(), and nofill() so ofPath works the same way ...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the ofPath API and comparing its fill, stroke, and color behavior with the ofGraphics API. Clarify whether simultaneous fill and stroke, zero-width stroke behavior, or an API redesign is intended. Done means the behavior or proposed API is explicitly decided and documented; no source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100