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

Gradient Note Head #1602

Open
EverlyScott opened this issue Nov 8, 2023 · 1 comment
Open

Gradient Note Head #1602

EverlyScott opened this issue Nov 8, 2023 · 1 comment

Comments

@EverlyScott
Copy link

Hey, I'm wondering if it's possible to use a gradient for a note's color? I've already just tried using setStyle with a CSS linear-gradient but it doesn't seem to be working.

@AaronDavidNewman
Copy link
Collaborator

Can you post a jsfiddle of what you're trying to do? It matters a bit which version of vexflow you're using. For v4 you would specify a gradient in the svg and apply it for the fill, for v5 the notehead is a glyph and you can apply text gradient techniques there. I have never tried it, but it should be the same as any other text element or path in svg.

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

No branches or pull requests

2 participants