Advertisement
mixster

mixster

May 23rd, 2009
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. program New;
  2. var
  3.   i, c, l: Integer;
  4.   p: TPoint;
  5.  
  6. begin
  7.   Writeln('Begin');
  8.   DisplayDebugImgWindow(50, 50);
  9.   Wait(250);
  10.   i := BitmapFromString(50, 50, '');
  11.   FastDrawClear(i, clBlack);
  12.   SafeDrawBitmap(i, GetDebugCanvas, 0, 0);
  13.   FreeBitmap(i);
  14.   while true do
  15.   begin
  16.     for i := 0 to 360 do
  17.     begin
  18.       c := (i + l) mod 5;
  19.       case c of
  20.         0: c := clBlue;
  21.         1: c := clYellow;
  22.         2: c := clRed;
  23.         3: c := clGreen;
  24.         4: c := clWhite;
  25.       end;
  26.       p := RotatePoint(Point(25, 0), (i), 25, 25);
  27.       GetDebugCanvas.Pixels[p.x, p.y] := c;
  28.     end;
  29.     l := l + 1;
  30.   end;
  31.   Writeln('End');
  32. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement