Thanks for the unfilled box code that you wrote. The following code shows a small sample of what I intended to do with it. If you or anyone sees any way of improving or shortening the code, please let me know. I'm eager to learn new techniques.
rem draw unfilled box
rem by TheComet
rem variation by Brazos
rem setup screen
sync on
sync rate 60
backdrop on
color backdrop 0
show mouse
rem make example image
for t=1 to 200
ink rgb(rnd(255),rnd(255),rnd(255)),0
dot rnd(100),rnd(100)
next t
rem get example image (1) and make dummy image (2)
get image 1,0,0,100,100
get image 2,0,0,100,100
rem main loop
click=0
do
paste image 1,200,200
paste image 2,-1,-1
rem check if mouse is pressed
if mouseclick()=1
rem set start positions
if click=0
startx=mousex()
starty=mousey()
click=1
endif
rem get end positions
endx=mousex()
endy=mousey()
rem draw box
empty_box(startx,starty,endx,endy,50,50,255)
rem get image from unfilled box area
rem making sure to keep get image command in range
rem with flags
if startx>0 and startx<endx and starty>0 and starty<endy then get image 2,startx,starty,endx,endy
if endx>0 and endx<startx and endy>0 and endy<starty then get image 2,endx,endy,startx,starty
if startx>0 and startx<endx and starty>0 and starty>endy then get image 2,startx,endy,endx,starty
if endx>0 and endx<startx and endy>0 and endy>starty then get image 2,endx,starty,startx,endy
else
click=0
endif
rem refresh screen
sync
rem end of main loop
loop
rem Functions ------------------------------------------------------------
function empty_box(x1,y1,x2,y2,r,g,b)
rem set ink colour
ink rgb(r,g,b),0
rem draw box
line x1,y1,x2,y1
line x2,y1,x2,y2
line x2,y2,x1,y2
line x1,y2,x1,y1
rem print how big the box is
cx=(x1+x2)/2
cy=(y2+2)
text 0,464,str$(x2-x1)+"*"+str$(y2-y1)
endfunction
Sorry for starting new thread, if I wasn't supposed to. I wanted TheComet to be sure and see this.