Another time thanks a lot Cesar, your suggestions are very helpfullyIt's a great idea to calculate a similar color in the table using the distance between two points, I didn't remember that function
. I will try it and I comment the results.
PD: did you forget to calculate the distance using squares in the function 'obtenirIndexColor'?
The results of calculating the distance multiplying each term with itself are the same that calculating it as I did with the absolute value, no?Qt Code:
diff = dR * dR + dG * dG + dB * dB;To copy to clipboard, switch view to plain text mode




It's a great idea to calculate a similar color in the table using the distance between two points, I didn't remember that function
. I will try it and I comment the results.
Reply With Quote
Bookmarks