Skip to content

Add support for dashed lines with offset#3720

Merged
emilk merged 2 commits intoemilk:masterfrom
oscargus:dashedlinewithoffset
Dec 23, 2023
Merged

Add support for dashed lines with offset#3720
emilk merged 2 commits intoemilk:masterfrom
oscargus:dashedlinewithoffset

Conversation

@oscargus
Copy link
Contributor

@oscargus oscargus commented Dec 19, 2023

Closes #3677.

This can naturally be obtained by starting the drawing a bit "later", but providing support for this directly will simplify interleaved drawing of dashed lines.

An even more general approach would be to allow passing an even-length vector of lengths and gaps, in addition to offset. Primarily thinking if it is better to go even further if a new dashed-line-method is introduced. The second commit introduce this (I can naturally squash these!).

@oscargus oscargus force-pushed the dashedlinewithoffset branch from 638f5cb to 7339bdd Compare December 19, 2023 15:32
@oscargus oscargus force-pushed the dashedlinewithoffset branch from 7339bdd to ac4e0e8 Compare December 19, 2023 15:36
@emilk emilk added the epaint label Dec 23, 2023
@emilk emilk merged commit fc18d6f into emilk:master Dec 23, 2023
@oscargus oscargus deleted the dashedlinewithoffset branch February 25, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashed line with start offset

2 participants