Skip to content

Enable color gradients on flows#99

Open
dsb3 wants to merge 3 commits intonowthis:mainfrom
dsb3:colour-gradients
Open

Enable color gradients on flows#99
dsb3 wants to merge 3 commits intonowthis:mainfrom
dsb3:colour-gradients

Conversation

@dsb3
Copy link
Copy Markdown

@dsb3 dsb3 commented Jan 5, 2026

I saw comments in the issues that other folks would like colour gradients available, and so would I, so I wrote it.

It's fairly complete, but does have a couple of small notes needed.

Missing is the ability to customize the colour gradient in the flow definition panel - the only way to get them is through the "inherit from" setting "source-target". I have a regex that could be used to detect the new format but no code to implement it.

When drawing very curved flows, the original rendering method (bezier curve with fixed width) looks pleasing, but the new code (filled shape with the same bezier on the top and bottom) does not. Without redrawing with a much more complex algorithm it's just going to not look as good when the curviness is close to maximum.

I've gone through enough testing to ensure it's satisfactory for my needs, but happy for feedback, comments or others testing results.

@dsb3 dsb3 mentioned this pull request Jan 5, 2026
@dsb3 dsb3 changed the title *WORK IN PROGRESS* enable color gradients on flows Enable color gradients on flows Jan 5, 2026
@dsb3
Copy link
Copy Markdown
Author

dsb3 commented Jan 5, 2026

Screenshot From 2026-01-05 18-18-10

Above is what I mean by rendering when "curviness" gets too high. On the left is the approximation that is a solid shape that can take a gradient fill; wheras on the right is a bezier curve of constant width.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant