Color of the vtkFullScreenRenderWindow


I noticed that it is possible to set gradient background effect in vtkc++

renderer->SetBackground(1.0, 1.0, 1.0);
renderer->SetBackground2(0.529, 0.8078, 0.92157);

but I did not find a similar method in vtkjs, can I implement gradient background setting in vtkjs, if so, please show me an example

thank you

You can do it in VTK.js by setting a transparent background and having the gradient background via CSS for the canvas.

That’s great. Thank you so much for your reply