Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,21 +0,0 @@
|
|||
with Cairo; use Cairo;
|
||||
with Cairo.Png; use Cairo.Png;
|
||||
with Cairo.Image_Surface; use Cairo.Image_Surface;
|
||||
procedure XorPattern is
|
||||
type xorable is mod 256;
|
||||
Surface : Cairo_Surface;
|
||||
Data : RGB24_Array_Access;
|
||||
Status : Cairo_Status;
|
||||
Num : Byte;
|
||||
begin
|
||||
Data := new RGB24_Array(0..256*256-1);
|
||||
for x in Natural range 0..255 loop
|
||||
for y in Natural range 0..255 loop
|
||||
Num := Byte(xorable(x) xor xorable(y));
|
||||
Data(x+256*y) := RGB24_Data'(Num,0,Num);
|
||||
end loop;
|
||||
end loop;
|
||||
Surface := Create_For_Data_RGB24(Data, 256, 256);
|
||||
Status := Write_To_Png (Surface, "AdaXorPattern.png");
|
||||
pragma Assert (Status = Cairo_Status_Success);
|
||||
end XorPattern;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
sc = 100 / 64
|
||||
for x = 0 to 63
|
||||
for y = 0 to 63
|
||||
h = 100 / 63 * bitand (bitxor x y) 63
|
||||
h = bitand (bitxor x y) 63 / 63
|
||||
gcolor3 h h h
|
||||
grect x * sc, y * sc, sc + 0.1, sc + 0.1
|
||||
.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue