how to set gradient background when using vtk.js?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to set gradient background when using vtk.js?

Jounly
Hi,
   As the title, how can i set a gradient background when using vtk.js?
I use the way below to set the background color, but it's not gradient.
Could anyone give me a hint on this?
/
const fullScreenRenderer =
vtkFullScreenRenderWindow.newInstance({background:[0,0,0]});/




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: how to set gradient background when using vtk.js?

VTK - Users mailing list
you need to do it in html while setting the bg in vtk.js with an opacity of 0 like [0,0,0,0]

On Tue, Feb 26, 2019 at 7:24 PM Jounly <[hidden email]> wrote:
Hi,
   As the title, how can i set a gradient background when using vtk.js?
I use the way below to set the background color, but it's not gradient.
Could anyone give me a hint on this?
/
const fullScreenRenderer =
vtkFullScreenRenderWindow.newInstance({background:[0,0,0]});/




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers