<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi All,</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Just letting you all know, you can now reference colors by name as there is a new class in VTK called vtkNamedColors.</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Note: This class is only in the development version of VTK (VTK 6.0).</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">So you can now do things like this:</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">ren-&gt;SetBackground(namedColors-&gt;GetColor3d(&quot;AliceBlue&quot;).GetData());</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Of course the VTK color names such as &quot;</span><font color="#222222" face="arial, sans-serif">lavender_blush&quot; are also supported.</font></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I have added a C++ and a Python example to the VTK Examples Wiki.</span><br clear="all" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/NamedColors">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/NamedColors</a>
</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">and</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<a href="http://www.vtk.org/Wiki/VTK/Examples/Python/Visualization/NamedColors">http://www.vtk.org/Wiki/VTK/Examples/Python/Visualization/NamedColors</a>
</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
If you have time please have a look at the examples, and, if you have any suggestions for improving them I would appreciate the feedback.</div><div><br></div><div>Acknowledgements and thanks go to to Marcus Hanwell, Bill Lorensen and David Thompson for their input and suggestions.</div>
<div><br></div><div>Regards</div><div>   Andrew</div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________<br>