Hei! Jeg vet ikke helt om det er dette du mener, men jeg prøver
(Jeg beklager at jeg endret koden litt)
var
i: Integer;
red, green, blue: Byte; // Integer?
label
Loop;
begin
{red := 255;
green := 0;
blue := 255;
i := 1;}
while i > 0 do
begin
editGreen.text := IntToStr(green);
editRed.text := IntToStr(red);
editBlue.text := IntToStr(blue);
PanelGreen.color := RGB(0, green, 0);
panelRed.color := RGB(red, 0, 0);
panelBlue.color := RGB(0, 0, blue);
panelcomb.color := RGB(red, green, blue);
Loop:
if blue < 255 then
Inc(blue, 10); // blue := blue + 10
if red < 255 then
Inc(red, 5);
if green < 255 then
Inc(green, 15);
// Bytes kan ikke overstige 255, så jeg satt inn >= (Greater or Equal).
if (blue >= 255) and (red >= 255) and (green >= 255) then
i := 0
else
Goto Loop;
end;
end;
-------------------------------------
I am AGAINST TCPA!!
[
http://www.againsttcpa.com/ ]
-------------------------------------
Mvh
DiZpel