Issues with registerGradient() #89
Unanswered
flokleiser
asked this question in
Q&A
Replies: 2 comments
-
It looks like you're trying to set the gradient before registering it. Try this:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks for the reply, that worked. i assumed i could apply the custom gradient in the same place where i could set the other options like modes etc., but just calling "audiomotion.gradient" separately worked perfectly👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would love to add a custom gradient that is grayscale to my project, but when i try to call "audioMotion.registerGradient('test' {...options etc}) on my projects page and then run it, i get an AudioMotionError about "Unknown gradient: 'test'". Is there anything i have to look out for to make audioMotion recognize a gradient, or are there any examples of people implementing their own gradients? Of course i could just put the whole audioMotion-anayzer.js into my src/ folder, edit that, and then import it from there, but i would like to set the gradient in my script. I would appreciate any help :)
Beta Was this translation helpful? Give feedback.
All reactions