Thema: Delphi Proportions of 3 values

Einzelnen Beitrag anzeigen

WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Proportions of 3 values

  Alt 9. Okt 2010, 20:51
Delphi-Version: 5
Guys, I have stupid question:

I have color in R, G and B values. I need to know each color element proportion in percent, eg. RGB(0, 255, 0) = 0%, 100% and 0%. Please F1

// Added

I mean how many color element is in color, above RGB(0, 255, 0) mean that color is 100% green, I hope you understand what I mean?

// Added

For example white should be 33% of each element. And sum of all percent values should be 100.

Geändert von WojTec ( 9. Okt 2010 um 21:02 Uhr)
  Mit Zitat antworten Zitat