home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
maksiu
/
utils
/
eaissue3b.lha
/
Source_Code
/
GL_Pixelizer.AMOS
/
GL_Pixelizer.amosSourceCode
Wrap
AMOS Source Code
|
1995-12-30
|
1KB
|
49 lines
Rem ***********************************
Rem * AMOS : Pixelizer by *
Rem * G.Lancaster *
Rem ***********************************
Rem * I do not know what use this will*
Rem * be but I fancied writing one! *
Rem * Don't be surprised if you get *
Rem * some funny results! *
Rem ***********************************
Rem * Drop me a line on any AMOS *
Rem * related subject at: *
Rem * *
Rem * Gareth Lancaster *
Rem * 40, Appleby Gardens *
Rem * Dunstable *
Rem * Bedfordshire *
Rem * LU6 3DB *
Rem * *
Rem ***********************************
Screen Open 0,320,256,32,Lowres
DTS=2
Dim C(DTS*DTS)
LOP:
Paper 0 : Cls
Flash Off : Curs Off
F$=Fsel$("","","Load an IFF pic")
If F$="" Then Run "autoexec.amos"
If Exist(F$) Then Load Iff F$,0 Else Goto 1
For Y=0 To Screen Height-DTS Step DTS
For X=0 To Screen Width-DTS Step DTS
If Mouse Key Then Goto LOP
F=1
For XX=X To X+DTS-1
For YY=Y To Y+DTS-1
C(F)=Point(XX,YY)
F=F+1
Next YY
Next XX
Sort C(1)
For XX=X To X+DTS-1
For YY=Y To Y+DTS-1
Plot XX,YY,C(1)
Next YY
Next XX
Next X
Next Y
Repeat : Until Mouse Key
Goto LOP