I've been using this for a while as a backdrop for graphical programs, so I thought I'd share the code; it's very simple really.
Condensed to one line:
s=128:for y = 0 to s-1 : for x = 0 to s-1 : ink ((x&&s-1)+(y&&s-1))*2,0 : dot x,y:next x:next y:for y = 0 to screen height()-s step s:for x = 0 to screen width()-s step s:copy bitmap 0,0,0,s,s, 0,x,y,x+s,y+s:next x:next y:sx=screen width()-x:if sx>0:copy bitmap 1,0,0,sx,screen height(), 1,screen width()-sx,0,screen width(),screen height():endif:sy=screen height()-y:if sy>0:copy bitmap 1,0,0,screen width(),sy, 1,0,screen height()-sy,screen width(),screen height():endif:wait key
Decompressed still only 19 lines:
s=128
for y = 0 to s-1
for x = 0 to s-1
ink ((x&&s-1)+(y&&s-1))*2,0
dot x,y
next x
next y
rem paste the image all over
for y = 0 to screen height()-s step s
for x = 0 to screen width()-s step s
copy bitmap 0,0,0,s,s, 0,x,y,x+s,y+s
next x
next y
rem patch up remaining gaps
sx = screen width()-x
if sx>0 then copy bitmap 0,0,0,sx,screen height(), 0,screen width()-sx,0,screen width(),screen height()
sy = screen height()-y
if sy>0 then copy bitmap 0,0,0,screen width(),sy, 0,0,screen height()-sy,screen width(),screen height()
wait key
To run in DBC just change the && to &.