Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2018.3.9f1
Issue ID
1142694
Regression
No
Converting RGB value to HSV and back to RGB returns wrong values
How to reproduce:
1. Open attached Unity project
2. Load scene "SampleScene"
3. Enter the Play mode
4. Notice Assertion failure in the Console window
Expected result: Converted 'b' value is 168. Assertion failure should not appear.
Actual result: Value before converting is 168. After converting to HSV and then back to RGB it changes to 167.
Reproduce with: 2019.2.0a10, 2019.1.0b10, 2018.3.12f1, 2017.4.25f1.
Notes:
This issue occurs with some specific values:
RGBA(0, 255, 168, 255): b value is converted to 167
RGBA(0, 168, 255, 255): g value is converted to 167
RGBA(0, 255, 169, 255): b value is converted to 168
Converting works properly with these values:
RGBA(0, 255, 167, 255)
RGBA(0, 167, 167, 255)
RGBA(0, 168, 168, 255)
RGBA(255, 168, 0, 255)
RGBA(0, 255, 170, 255)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Linux] Cannot reorder GameObjects in the Hierarchy when the AI Assistant package is installed
- [iOS] Text Input field stops receiving changes when the "Cancel" button is used on the soft keyboard
- [WebGPU] URP RenderGraph RenderPass doesn't clear textures
- Query Builder items display raw code style names instead of human readable labels in search field
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
Add comment