![]() |
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>); |
Re: Rechenproblem
Aber dann bitte mit Rückgabewert :lol:
[edit] Owned :tongue: [/edit] |
Re: Rechenproblem
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:44 Uhr. |
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