-
Notifications
You must be signed in to change notification settings - Fork 202
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
Unsupported format for color #387
Comments
Can you provide a concrete example on when this error occurs? If possible a jsFiddle or example link showing the issue.. Line 68 in 89c8f2a
Generally the conversion code is quite simple, this means there is very likely something special to your color definition. The docs mention that any CSS compliant string like #RGB, #RGBA, #RRGGBB, #RRGGBBAA, rgb(r,g,b) and rgba(r,g,b,a) is supported. It might be true that CSS supports more (like hsl() and hsla()) and the docs might not be 100% correct: |
Hi Daniel, I will get to that, but just to add some information, I am using the latest version of JQuery as well if that would make a difference. Regards |
jQuery should not have any impact on alphaTab. The jQuery support is just a very thin layer which maps calls down to an alphaTab API object which is plain JavaScript. It's most likely something is wrong with the values you're passing in. Once you provided an example we can investigate further. |
@Nascent Any update here? Otherwise I will close this issue due to inactivtiy. |
Closing due to inactivity. |
I have came across this issue too. Seems the doc is miss leading. |
Found a way to fix this. Change color by set raw. |
@WindBise See #1558 (comment) for more details on that topic. |
Hi,
I am getting the error "unsupported format for color" when using version 1.0.1 of Alphatab.
Version used: 1.0.1
Platform used: JavaScript
Rendering engine used: SVG
Chrome Latest
Windows
Link to your project: Testing on Localhost, but will provide more information, and a test link if required.
Thank you
Expected Results
Allow colors to be used, as per AlphaTab documentation.
Observed Results
Alphatab not proceeding with loading of .gp file
Steps to Reproduce (for bugs)
Possible Solution
Remove color information, but then it is not possible to see anything, as background color precludes
The text was updated successfully, but these errors were encountered: