Skip to content

Transparent backgrounds (alpha channel) no longer working #2437

@aerogt3

Description

@aerogt3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions