metafizzy / metafizzy/zdog

fill: color, separate from stroke?

Open
#124 4 comments 0 reactions 0 assignees View on GitHub

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.
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.