-
-
Notifications
You must be signed in to change notification settings - Fork 371
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 backgrounds (alpha channel) no longer working #2437
Comments
The issue is probably coming from the setter but technically we still expect rgba. Thanks for reporting that issue. |
We likely need to directly implement The alpha channel was never dropped. Instead, the setGetArray mixin was updated with stricter array handling, and setBackground relied on loose array handling (i.e. can take a 3-tuple or 4-tuple). |
Currently the implemented signature is You can do the following to have a transparent background:
|
Ah, gotcha. This is because Here are 3 options:
|
Hello,
In vtk,js 19.2.5, I could set transparent background for the renderWindow:
renderer = vtkRenderer.newInstance({ background:(1,1,1,1)});
However, in 24.8.0, this same line no longer works, producing an error:
Uncaught RangeError: Invalid initial number of values for array (background)
Is there any reason the alpha channel was dropped? This was a very cool feature, especially for "dark mode" where the transparency allowed for the page/user to effectively set the background.
The text was updated successfully, but these errors were encountered: