Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Munching-squares/Delphi/munching-squares.delphi
Normal file
12
Task/Munching-squares/Delphi/munching-squares.delphi
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
procedure MunchingSquares(Image: TImage);
|
||||
{XOR's X and Y to select an RGB level}
|
||||
var W,H,X,Y: integer;
|
||||
begin
|
||||
W:=Image.Width;
|
||||
H:=Image.Height;
|
||||
for Y:=0 to Image.Height-1 do
|
||||
for X:=0 to Image.Width-1 do
|
||||
begin
|
||||
Image.Canvas.Pixels[X,Y]:=RGB(0,X xor Y,0);
|
||||
end;
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue