home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
gfx
/
clouds-3.1.lha
/
Clouds
/
Clouds3.1.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-01-12
|
24KB
|
520 lines
PROGRAM Cloudy;
{************************************************
************************************************
**** ****
**** Clouds 3.1 ****
**** ****
**** by Danny Amor in 1993 ****
**** ****
**** using KICK-PASCAL 2.1 ****
**** ****
************************************************
************************************************}
{$OPT q}
USES SupportIntuition,Intuition,IFF;
{$incl "libraries/asl.h", "asl.lib","libraries/dosextens.h"}
CONST ObereFarbe = 31;
UntereFarbe = 2;
MittlereFarbe = 17;
VERSION = "$VER: Clouds 3.1 (12.01.94) by Daniel Amor, Ludwigstr. 124, 70197 Stuttgart, Germany";
TYPE IDt0 = ARRAY[1..1280] OF INTEGER;
IDt1 = ARRAY[1..10] OF INTEGER;
STR_100 = STRING[256];
VAR Scr : ^Screen;
Win,Win2 : ^Window;
Msg : ^IntuiMessage;
Rp : ^Rastport;
Vp, OldPtr : PTR;
MyProcess : ^Process;
FailName,Titl : STRING[256];
ab,na,num_iter,nk,n1,n,farbe,
farbe1,farbe2,farbe3,farbe4 : WORD;
Ok,Ende,finito : BOOLEAN;
mu,mf : REAL;
cloudybDt0,cloudybDt1,cloudybDt4,cloudybDt5 : IDt1;
cloudytattr0 : TextAttr;
cloudyitxt0 ,cloudyitxt1 ,cloudyitxt2,
cloudyitxt3 ,cloudyitxt4 ,cloudyitxt5,
cloudyitxt6 ,cloudyitxt7 ,cloudyitxt8,
cloudyitxt9 ,cloudyitxt12,cloudyitxt11 : IntuiText;
cloudyimage0 : Image;
cloudyiDT0 : ^IDt0;
cloudyborder0,cloudyborder1,cloudyborder4,
cloudyborder5 : Border;
cloudygadget0,cloudygadget1,cloudygadget2,
cloudygadget3,cloudygadget4,cloudygadget5,
cloudygadget6,cloudygadget7,cloudygadget8,
cloudygadget9 : Gadget;
clouds0 : Requester;
AktGad : ^Gadget;
resz : LONG;
resx,resy : INTEGER;
it1,it2,it3,it4,it5,itxt2,itxt3,RUS,YES,NO : IntuiText;
Req : p_FileRequester;
Tags : ARRAY[0..5] OF TagItem;
x,y,mode : LONG;
PROCEDURE ShowGadgets(w: p_Window);
VAR a: BOOLEAN;
BEGIN
cloudytattr0:=TextAttr("topaz.font",8,0,99);
cloudyitxt0:=IntuiText(25,0,0,16,3,^cloudytattr0,"QUIT",NIL);
cloudyitxt1:=IntuiText(25,27,0,16,3,^cloudytattr0,"SIZE",NIL);
cloudyitxt2:=IntuiText(25,27,0,4,3,^cloudytattr0,"4",NIL);
cloudyitxt3:=IntuiText(25,27,0,4,3,^cloudytattr0,"3",NIL);
cloudyitxt4:=IntuiText(25,27,0,4,3,^cloudytattr0,"2",NIL);
cloudyitxt5:=IntuiText(25,27,0,4,3,^cloudytattr0,"1",NIL);
cloudyitxt6:=IntuiText(1,0,0,8,3,^cloudytattr0,"",NIL);
cloudyitxt7:=IntuiText(25,27,0,4,3,^cloudytattr0,"ANIMATE",NIL);
cloudyitxt8:=IntuiText(25,0,0,8,3,^cloudytattr0,"SMOOTH",NIL);
cloudyitxt9:=IntuiText(25,0,0,16,3,^cloudytattr0,"SAVE",NIL);
cloudyitxt11:=IntuiText(1,0,2,3,75,^cloudytattr0,"1993 by",^cloudyitxt12);
cloudyitxt12:=IntuiText(1,0,2,4,87,^cloudytattr0,"D. Amor",NIL);
cloudyiDt0:=Ptr(Alloc_Mem(SizeOf(Idt0),2));
cloudyiDt0^:=IDt0(2687 ,-2245 ,-32230 ,678 ,24531 ,7313 ,-7301 ,-30724 ,-7678 ,-4221 ,-22346,
-31354 ,11313 ,-556 ,4003 ,-18938 ,-19131 ,-25035 ,-22925 ,30902 ,2927 ,-4646 ,-30028 ,-19184 ,-12944 ,2050 ,3598,
20466 ,-12812 ,15751 ,-19174 ,14297 ,-2610 ,19404 ,-32016 ,14996 ,-1812 ,-26046 ,-12023 ,6576 ,12971 ,29272 ,3409,
7608 ,12027 ,-7198 ,22644 ,23582 ,1393 ,-25024 ,-17419 ,30678 ,13605 ,-6788 ,-26675 ,27343 ,2834 ,-11157 ,5102,
8970 ,27401 ,-7106 ,1878 ,-20239 ,-26263 ,672 ,30311 ,-15117 ,4291 ,4172 ,-2365 ,-7774 ,27978 ,22021 ,-22205,
-8924 ,-25218 ,-19554 ,-26861 ,-7510 ,23694 ,20757 ,-6859 ,-2475 ,15612 ,-11939 ,31715 ,-1812 ,-26666 ,9834 ,-9604,
-5817 ,10344 ,6827 ,25815 ,-11646 ,-3984 ,4691 ,2311 ,29272 ,31052 ,-2474 ,29300 ,-3107 ,8741 ,5784 ,16902,
1169 ,18680 ,-24210 ,-24289 ,4828 ,-22833 ,12513 ,-15929 ,-29761 ,30037 ,8396 ,-23373 ,-29675 ,2505 ,-12890 ,-10640,
22329 ,-6424 ,2876 ,14032 ,-9871 ,-14106 ,9933 ,-13443 ,29063 ,-2508 ,-23827 ,132 ,-114 ,-16415 ,-7321 ,-10832,
-14086 ,26642 ,-2904 ,-20898 ,23977 ,-21334 ,-18124 ,-21412 ,9598 ,-25307 ,19724 ,6354 ,20872 ,-29128 ,6628 ,18035,
-25504 ,-15770 ,-28205 ,-9334 ,9053 ,29599 ,10538 ,28980 ,19058 ,-26776 ,-22075 ,21494 ,-28051 ,-25177 ,-24316 ,17846,
29994 ,-7372 ,32529 ,18034 ,-27890 ,30010 ,8352 ,22246 ,-27610 ,14481 ,7002 ,-8461 ,-12746 ,-26607 ,8283 ,27475,
24546 ,-4810 ,-15395 ,8118 ,-20525 ,27973 ,9839 ,12352 ,-20114 ,22983 ,13230 ,-25032 ,25966 ,-21361 ,-16827 ,-20897,
-12772 ,-31151 ,-22048 ,-18278 ,862 ,-21055 ,5354 ,-2715 ,-22226 ,-20486 ,-19607 ,-12677 ,6114 ,17134 ,7685 ,-5419,
5978 ,11670 ,10079 ,26525 ,31713 ,2328 ,-19773 ,31556 ,17899 ,-20536 ,10555 ,-30923 ,15508 ,18600 ,1605 ,6901,
-22849 ,5918 ,-25967 ,23860 ,-25371 ,-29992 ,30560 ,30297 ,23217 ,23102 ,23671 ,13593 ,28396 ,15564 ,17163 ,14508,
-5192 ,-11808 ,27733 ,-8902 ,20992 ,19711 ,29598 ,9940 ,-14977 ,27395 ,-11347 ,-15190 ,28219 ,11252 ,9989 ,-16741,
30651 ,-10362 ,-31260 ,-17657 ,9448 ,-14781 ,-158 ,23104 ,-2445 ,194 ,6489 ,1410 ,-28656 ,-7292 ,-8957 ,-12603,
-24211 ,-22333 ,-7078 ,25327 ,-32226 ,30624 ,32173 ,21843 ,14383 ,15617 ,16704 ,-7534 ,-15943 ,27116 ,26884 ,12659,
6463 ,296 ,-3373 ,4888 ,17405 ,-6090 ,-8969 ,9299 ,-2533 ,-7594 ,-4420 ,4678 ,-21695 ,-9559 ,21318 ,7428,
6414 ,-2426 ,-76 ,-23258 ,6830 ,15818 ,28596 ,-18122 ,-23917 ,-6292 ,18047 ,-9125 ,-5659 ,-26121 ,-19478 ,-25773,
-6363 ,22810 ,2794 ,-28455 ,26585 ,-1947 ,-16676 ,-14079 ,-16412 ,-21325 ,19361 ,28774 ,27438 ,-27214 ,-17723 ,13002,
362 ,-2313 ,7972 ,-6136 ,14707 ,5992 ,-16560 ,-18463 ,-27633 ,-6302 ,12965 ,-18610 ,15305 ,-13751 ,16440 ,17011,
-13905 ,-30332 ,32465 ,-29565 ,10645 ,-26163 ,-18288 ,-28462 ,-18595 ,-3462 ,16397 ,-2492 ,22081 ,-24085 ,13787 ,-29309,
4953 ,-5943 ,22179 ,2651 ,-8087 ,1015 ,26638 ,7674 ,-25390 ,17707 ,17385 ,-27674 ,-17549 ,-2256 ,23071 ,-10263,
2956 ,26627 ,12995 ,5948 ,9610 ,22105 ,-24114 ,-27244 ,20407 ,-5105 ,-4910 ,-4193 ,-12239 ,-2891 ,-4800 ,-5556,
10589 ,-639 ,-10540 ,-667 ,-20560 ,-27191 ,-30836 ,-12005 ,32146 ,-29807 ,-7581 ,-3201 ,-1145 ,-14862 ,17761 ,-19512,
-25470 ,1893 ,2591 ,-13769 ,-7726 ,-28800 ,-9955 ,-7107 ,-770 ,-2859 ,8525 ,-12285 ,21398 ,-30739 ,-1118 ,-5051,
29853 ,-10926 ,32164 ,18927 ,-1239 ,-24056 ,-31165 ,-10449 ,32319 ,-5805 ,28280 ,-5761 ,-21213 ,-12153 ,-9091 ,-19439,
-22134 ,26657 ,1850 ,-14147 ,15889 ,8841 ,-21698 ,11264 ,-8773 ,6602 ,-13443 ,30266 ,-21068 ,29324 ,-29156 ,-25459,
-2842 ,-3521 ,-8516 ,11263 ,13022 ,-30289 ,7988 ,-2284 ,-21534 ,-14947 ,-24517 ,16037 ,30620 ,310 ,-5336 ,-11883,
21871 ,-15211 ,-19404 ,-9462 ,25173 ,-24568 ,-10469 ,8664 ,1011 ,-25423 ,7968 ,2539 ,-25481 ,-7821 ,-427 ,-18586,
13179 ,-29370 ,32007 ,-27478 ,-24271 ,-1025 ,-7966 ,32551 ,32176 ,-1540 ,-7750 ,-14909 ,-18114 ,-5685 ,-9337 ,18661,
26767 ,3264 ,-26140 ,26740 ,30979 ,-6983 ,-32766 ,-4593 ,-7926 ,25658 ,-32223 ,-4922 ,-5143 ,-26887 ,19