2013-04-10 16:19:29 -07:00
|
|
|
with Ada.Text_IO; use Ada.Text_IO;
|
|
|
|
|
|
|
|
|
|
package body Bitmap_Store is
|
|
|
|
|
|
|
|
|
|
procedure Fill (Picture : in out Image; Color : Pixel) is
|
|
|
|
|
begin
|
2017-09-23 10:01:46 +02:00
|
|
|
for p of Picture loop x:= Color;end loop;
|
2013-04-10 16:19:29 -07:00
|
|
|
end Fill;
|
|
|
|
|
|
|
|
|
|
procedure Print (Picture : Image) is
|
|
|
|
|
begin
|
|
|
|
|
for I in Picture'Range (1) loop
|
|
|
|
|
for J in Picture'Range (2) loop
|
2017-09-23 10:01:46 +02:00
|
|
|
Put (if Picture (I, J) = White then ' ' else 'H');
|
2013-04-10 16:19:29 -07:00
|
|
|
end loop;
|
|
|
|
|
New_Line;
|
|
|
|
|
end loop;
|
|
|
|
|
end Print;
|
|
|
|
|
|
|
|
|
|
end Bitmap_Store;
|