Code: Select all
screenres 640,480,32
dim as integer mx,my,mb
dim as any ptr disc,background
disc = imagecreate(200,200,rgb(255,0,255))
background = imagecreate(640,480,rgb(0,0,0))
circle disc,(100,100),95,rgb(0,0,0),,,,f
dim as integer x,y
for i as integer = 0 to 500
x = int(rnd(1)*200)
y = int(rnd(1)*200)
if point(x,y,disc)=rgb(0,0,0) then
pset disc,(x,y),rgb(255,255,255)
end if
next i
'fill background with stars
for i as integer = 0 to 5000
x = int(rnd(1)*640)
y = int(rnd(1)*480)
pset background,(x,y),rgb(255,255,255)
next i
do
getmouse mx,my,,mb
screenlock
cls
put (0,0),background
put (mx-100,my-100),disc,trans
screenunlock
sleep 2
loop until multikey(&H01)