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

Add gradient border #46

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add gradient border #46

wants to merge 3 commits into from

Conversation

fun840
Copy link

@fun840 fun840 commented Dec 6, 2022

This adds some new options to the script, allowing you to have gradient borders.

The --border-gradient option accepts a list of RGBA colors, which will make up the gradient.

The --rainbow option will create a rainbow gradient (using the built in colorsys module's hsv_to_rgb)
The --rainbow-steps option specifies how many colors the rainbow gradient should use, the default being 20. This can slightly affect performance, but around 20 seems to be the sweet spot where performance is good but both ends of the gradient are roughly the same color.
The --rainbow-saturation option specifies the saturation of the colors in the rainbow gradient, this is nice to get a sort of pastel look.
The --rainbow-brightness option specifies the brightness of the colors in the rainbow gradient, for customization and completeness.

The --absolute-gradient option makes the gradient 'absolute,' so it doesn't move with the current window. This gives the effect that the border is masking the gradient.

@Ari-43
Copy link

Ari-43 commented Jun 4, 2024

I have been having some fun messing around with this. Are there any plans for this to get merged eventually?

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.

2 participants