<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi Everyone,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm having a wierd problem with vtkProperty. I create a line and specify a color for it. The problem is&nbsp;that&nbsp;some (actually most)&nbsp;RGB values I pass to vtkProperty won't&nbsp;generate&nbsp;the related colour. say for example slateblue identified by&nbsp;R=147, G=112 and B=219 (<A href="http://www.ecrion.com/Support/Resources/XSL-FOTutorial/ApendixA.xml.html">http://www.ecrion.com/Support/Resources/XSL-FOTutorial/ApendixA.xml.html</A>) appears as white?????!!!!!!!&nbsp;and it's not only that color. Can someone tell me what's the solution the&nbsp;create any RGB color. Here's my code:</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>
<P>vtk.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>vtkLineSource</FONT></FONT><FONT size=2> line = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>vtkLineSource</FONT></FONT><FONT size=2>();</P>
<P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>line.SetPoint1(0.0, 0.0, 0.0);</P></FONT></FONT><FONT size=2>
<P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>line.SetPoint2(50, 50, 0.0);</P></FONT></FONT><FONT size=2>
<P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2></FONT></FONT>&nbsp;</P>
<P><FONT color=#2b91af size=2><FONT color=#2b91af size=2>vtkPolyDataMapper</FONT></FONT><FONT size=2> mapper = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>vtkPolyDataMapper</FONT></FONT><FONT size=2>();</P>
<P>mapper.SetInput(line.GetOutput());</P></FONT><FONT size=2>
<P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2></FONT></FONT>&nbsp;</P>
<P><FONT color=#2b91af size=2><FONT color=#2b91af size=2>vtkActor</FONT></FONT><FONT size=2> lineActor = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>vtkActor</FONT></FONT><FONT size=2>();</P>
<P>lineActor.SetMapper(mapper);</P>
<P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2></FONT></FONT>&nbsp;</P>
<P><FONT color=#008000 size=2><FONT color=#008000 size=2>//set line properties</P></FONT></FONT><FONT size=2>
<P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>vtkProperty</FONT></FONT><FONT size=2> property = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>vtkProperty</FONT></FONT><FONT size=2>();</P></FONT><FONT size=2>
<P>property.SetColor(147.0, 112.0, 219.0);</P></FONT><FONT size=2>
<P>lineActor.SetProperty(property);</P></FONT></DIV></div><br>



      <hr size=1> 
Not happy with your email address?
<br> <a href="http://uk.docs.yahoo.com/ymail/new.html"> Get the one you 

really want</a> - millions of new email addresses available now at <a 

href="http://uk.docs.yahoo.com/ymail/new.html"> Yahoo!</a></body></html>