Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Rechenproblem (https://www.delphipraxis.net/114588-rechenproblem.html)

Die Muhkuh 29. Mai 2008 12:33

Re: Rechenproblem
 
Mach doch noch eine Funktion draus:

Delphi-Quellcode:
function CalcGradiendColor(start, end, pos, length: Integer): Integer;
begin
  Result := start + round ((end - start) * pos / length);
end;

// Aufruf:
RVal := CalcGradientColor(<Params>);
GVal := CalcGradientColor(<Params>);
BVal := CalcGradientColor(<Params>);

DeddyH 29. Mai 2008 12:33

Re: Rechenproblem
 
Aber dann bitte mit Rückgabewert :lol:

[edit] Owned :tongue: [/edit]

Die Muhkuh 29. Mai 2008 12:35

Re: Rechenproblem
 
Zitat:

Zitat von DeddyH
Aber dann bitte mit Rückgabewert :lol:

[edit] Owned :tongue: [/edit]

:stupid:


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:44 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz