[vtkusers] Change background-color of rendering window

Rashed Karim rashed.karim at gmail.com
Wed Sep 6 15:57:33 EDT 2006


Thanks Marc .. you were right .. its my bad.

Rashed

On 9/6/06, Marc Cotran <marc at cotran.ca> wrote:
>
> Rashed Karim wrote:
> > Hi Marc,
> >
> > Thanks for your reply. I tried using the SetBackground function but
> > whatever color (r,g,b) i set it to, always produces the white
> > background. Any ideas as to why ?
> I'm guessing you are using integer values above 1 and they are being
> clamped to 1 for r,g,b. VTK works with doubles from 0.0 to 1.0. For
> example, to set background color to blue, you would say:
>
> SetBackground(0.0, 0.0, 1.0);
>
> hth
>
> Marc
>



-- 
Rashed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060906/686debf2/attachment.htm>


More information about the vtkusers mailing list