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

Shape's outline #6

Open
CoffeeStraw opened this issue Feb 1, 2020 · 1 comment
Open

Shape's outline #6

CoffeeStraw opened this issue Feb 1, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@CoffeeStraw
Copy link
Owner

Have a way to obtain shape's outline as a shape could be used for border textures or some particular border animations.
Adding options for edges mode (bevel, miter, round) would be nice.

@CoffeeStraw CoffeeStraw added the enhancement New feature or request label Feb 1, 2020
@Youka
Copy link

Youka commented Feb 1, 2020

Possibly the most difficult and slowest operation of common vector graphics.
Splitting a shape/path into sub-paths, for each sub path getting offset lines/curves of both sides (using orthogonal vectors for left+right of points) in opposite order (completing two circuits for winded filling) and joining them sounds easy but results in a lot of branching with different horizontal & vertical width and multiple join modes.
Furthermore you'll get a stroke at the end which overlaps halfway with the filling of your shape so an additional masking is required which leads to pixels operations... hell of an effort for fancy border effects.
I'd put it to "nice-to-have". Did it in Yutils but will do it better in SSB (WIP).

@CoffeeStraw CoffeeStraw pinned this issue Jul 16, 2020
@CoffeeStraw CoffeeStraw self-assigned this Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants