SRL Archive - Research & Development Lounge

Procedure StrobLine(Line:Integer)


MylesMadness

2008-05-09 19:15:40

Procedure StrobeLine(Line:Integer);
var
s:string;
begin
S:=GetDebugLine(Line)
ClearDebugLine(Line)
wait(50)
ReplaceDebugLine(Line, S)
end;

Use like this
Procedure StrobeLine(Line:Integer);
var
s:string;
begin
S:=GetDebugLine(Line)
ClearDebugLine(Line)
wait(50)
ReplaceDebugLine(Line, S)
end;

Procedure Intro;
var
I, A:integer;
begin
cleardebug
Writeln(' _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _')
Writeln('(_)(_)(_)(_)(_)(_)(_)(_)(_)(_) _(_)(_)(_)(_)_ (_)(_)(_)(_)(_)')
Writeln(' (_) (_) (_) (_) (_)')
Writeln(' (_) (_) _ _ (_)_ _ _ _ (_)')
Writeln(' (_) (_)(_)(_) (_)(_)(_)(_)_ (_)')
Writeln(' (_) (_) _ (_) (_)')
Writeln(' (_) (_) _ _ _ _ (_)_ _ _ _(_) (_)')
Writeln(' (_) (_)(_)(_)(_)(_) (_)(_)(_)(_) (_)')
wait(250)
repeat
for I:=0 to 8 do
StrobeLine(I);
Inc(A)
wait(500)
until(A=3)
end;

begin
Intro;
end.

Harry

2008-05-09 19:59:22

Ha, nice, looks cool.

Edit: Strob = Strobe ;) if you are referring to a strobe light.

MylesMadness

2008-05-10 07:47:54

right… fixed

ShowerThoughts

2008-05-10 07:59:22

Cool! Good job!