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

Is there a simple way to color the notes in certain measures (e.g. even measures are black vs. odd measures are red)? #1011

Open
mikehaojiang opened this issue Apr 7, 2024 · 1 comment

Comments

@mikehaojiang
Copy link

No description provided.

@paulrosen
Copy link
Owner

Yes. call something like abcjs.renderAbc(el, str, { add_classes: true }). All the elements can be targeted with CSS. For instance:

.abcjs-mm0,.abcjs-mm2, abcjs-mm4 {
  fill: red;
}

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