Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fill: color, separate from stroke? #124

Open
dicash opened this issue Oct 22, 2024 · 4 comments
Open

fill: color, separate from stroke? #124

dicash opened this issue Oct 22, 2024 · 4 comments

Comments

@dicash
Copy link

dicash commented Oct 22, 2024

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

@dicash
Copy link
Author

dicash commented Oct 22, 2024

Also - I am having difficulty figuring out z-fighting here:
https://codepen.io/dicash/pen/xxvXLOq
I wonder if compensating points are possible here, can't figure out the logic

@ibra-kdbra
Copy link

Did you figure it out?

@dy
Copy link

dy commented Dec 23, 2024

@ibra-kdbra nope. For the first problem I had to create 2 shapes. For z-index the method from readme didn't work sadly.

@ibra-kdbra
Copy link

Okay, I tried to figure out the same way, but had a problem, looks like this repository is dead..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants
@dy @ibra-kdbra @dicash and others