<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Is there a reason that unsigned chars are not used for all things related to color? For example </div><div><br></div><div>vtkProperty::SetColor(double,double,double) //expects values from 0.0 to 1.0</div>
<div><a href="http://www.vtk.org/doc/nightly/html/classvtkProperty.html#aa591fc54d4e2d21e2c7a97ef7cd2a993">http://www.vtk.org/doc/nightly/html/classvtkProperty.html#aa591fc54d4e2d21e2c7a97ef7cd2a993</a></div><div><br></div>
<div>vtkViewPort::SetBackground(double,double,double) //expects values from 0.0 to 1.0</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><a href="http://www.vtk.org/doc/nightly/html/classvtkProperty.html#aa591fc54d4e2d21e2c7a97ef7cd2a993"></a><a href="http://www.vtk.org/doc/nightly/html/classvtkViewport.html#a85eaf3ee2b0e49423efbaa41de17112d">http://www.vtk.org/doc/nightly/html/classvtkViewport.html#a85eaf3ee2b0e49423efbaa41de17112d</a><br clear="all">
<br></div><div>Wouldn't it be more natural to define these as</div><div><br></div><div>vtkProperty::SetColor(unsigned char,unsigned char,unsigned char) //expects values from 0 to 255</div><div>vtkViewPort::SetBackground(unsigned char,unsigned char,unsigned char) //expects values from 0 to 255</div>
<div><br></div><div>?</div><div><br></div><div>Thanks,<br><br>David<br>
</div>