Open the View tab and try set the 'Shape Color' property, for example.
As a color, specify for example: red = 50, green = 100, blue = 200.
Press 'Ok', and then check which values are written to the property.
And you will see: red = 51, green = 99, blue = 198.
It was checked in Windows, perhaps this error is missing in other operating systems.
Code: Select all
OS: Windows 10
Word size of FreeCAD: 64-bit
Version: 0.21.0.31432 (Git)
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
I think this is due to the fact that the property App::PropertyColor uses a float color model like: (1.0, 1.0, 1.0, 1.0) and the color dialog returns values in the integer format like (255, 255, 255, 255) and after several conversions from integer to float and back, the color accuracy is lost.