piet-svg combined fill and stroke operation
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
When executing both `RenderContext::stroke` and `RenderContext::fill`,
passing the same `Shape`, such as a `BezPath` results in multiple `path` elements in the output when using _piet-svg_ output.
I wonder if this calls for a function that combines both `stroke` and `fill` operations, or perhaps some `Renderable` or `Drawable` trait which has both shape/geometry and stroke/fill/style information.
Maybe though I'm missing some way to achieve this already via the `Brush` API though I don't think so.
Here is some output which rather than one path with both `fill="#304040" stroke="#000000"`, you get 2 paths.
```
```
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
No source file or test is named. Start by reproducing the case with piet-svg using the same Shape with RenderContext::fill and RenderContext::stroke, then inspect how those operations produce SVG path elements. Done would require a decided API or behavior for combining fill and stroke into one path element, along with coverage for the expected output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100