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

"transparent" or "none" support #198

Open
MinionMax opened this issue Sep 24, 2020 · 4 comments
Open

"transparent" or "none" support #198

MinionMax opened this issue Sep 24, 2020 · 4 comments

Comments

@MinionMax
Copy link

could it be possible to implement "transparent" or "none" options in the .colorize method?
it shows up as a style in the inspector but it doesn't seem to actually apply the style.

@tatecarson
Copy link
Collaborator

This is a version of the color example but with a background with no opacity. Is this what you were looking for?

var dial = new Nexus.Dial('#dial')
dial.value = 0.5
dial.colorize("accent","#ff0")
dial.colorize("fill","rgba(0, 0, 0, 0)")
document.body.style.backgroundColor = "#000"

@MinionMax
Copy link
Author

Yeah I tried that but it doesn't seem to work for me...

@tatecarson
Copy link
Collaborator

If you give me an example in context I can take a look at it.

@MinionMax
Copy link
Author

If you could take a look at my main.js file in my js-websynth repo that would be really appreciated. Nexus style functions are at the very end.

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