[vtkusers] gradient background direction
Nelson
gnjoseph at gmail.com
Sun Sep 4 06:00:05 EDT 2011
Hope the following would help.
vtkSmartPointer<vtkRenderer> ren = vtkSmartPointer<vtkRenderer>::New();
// Mapper
// Actor
ren->GradientBackgroundOn();
ren->SetBackground( <your first color> );
ren->SetBackground2( <your second color> );
ren->SetGradientBackground( true );
-----
Regards,
Nelson
--
View this message in context: http://vtk.1045678.n5.nabble.com/gradient-background-direction-tp4737418p4767277.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list