Skip to content
Snippets Groups Projects
Commit 2d83fc1c authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

ENH: Adds fade background

 Adds fade background with typical paraview style bg colors.
TODO : make this a renderer setting and optional
parent 4cefc3f2
No related branches found
No related tags found
No related merge requests found
......@@ -73,8 +73,15 @@ Viewer::initRenderer()
renderer->ResetCameraClippingRange();
// Global Axis
/// TODO : make this a renderer setting and optional
auto axes = vtkSmartPointer<vtkAxesActor>::New();
renderer->AddActor(axes);
// Customize background colors
/// TODO : make this a renderer setting and optional
renderer->GradientBackgroundOn();
renderer->SetBackground(0.8, 0.8, 0.8);
renderer->SetBackground2(0.45, 0.45, 0.8);
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment