fill: color, separate from stroke?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 407
- PR merge metrics
- No merged PRs in 30d
Description
@desandro possibly obvious request, but I wasn't able to find in issues/docs.
We have shapes like that we'd like to animate.
My expectation would be as in SVG to have `stroke` and `fill` to define color.
It doesn't seem to be the case here - `fill` in zdog is just a flag.
I would like to avoid creating two shapes just to make stroke color different from fill.
Do you think it'd worth extending `fill` to support strings?
Or you know some alternative?
One hack would be rendering into SVG and styling shapes via CSS.
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 files, tests, or entry points are named. Start by locating how Zdog applies shape stroke and fill options in its canvas and SVG paths, then determine the expected API and verify that distinct stroke and fill colors work without duplicate shapes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100