[vtkusers] how to set gradient background when using vtk.js?

Sebastien Jourdain sebastien.jourdain at kitware.com
Tue Feb 26 23:05:43 EST 2019


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 <lihouxing0710 at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190226/fa3d8cdc/attachment.html>


More information about the vtkusers mailing list