Thema: Delphi Proportions of 3 values

Einzelnen Beitrag anzeigen

Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#5

AW: Proportions of 3 values

  Alt 9. Okt 2010, 21:31
Now i got what u mean

Code:
R 100
G 50
B 50
So we have a total summ of
Code:
100+50+50 = 200
Now we can calc
Code:
R 100/200=>50%
G 50/200=>25%
B 50/200=>25%
Hope u get the howto
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat