#module
#deffunc jointless int, int, int, int, int
mref id, 0 : mref sx, 1 : mref sy, 2 : mref gx, 3 : mref gy, 4
cx = csrx : cy = csry
pos cx, cy : gcopy id, sx, sy, gx - sx, gy - sy
pos cx + gx - sx, cy : gcopy id, , sy, sx, gy - sy
pos cx, cy + gy - sy : gcopy id, sx, , gx - sx, sy
pos cx + gx - sx, cy + gy - sy : gcopy id, , , sx, sy
return
#global
// 使用する画像をバッファに配置しスクロール対象に定義
buffer 2
x = winx : y = winy
color 255 : boxf , , x / 2, y / 2
color , 255 : boxf x / 2, , x , y / 2
color , , 255 : boxf , y / 2, x / 2, y
color 50, 50, 50 : boxf x / 2, y / 2, x, y
// コピー
gsel 0
repeat
redraw 0
pos 0, 0 : jointless 2, cnt * 2 \ x, cnt * 2 \ y, x, y
redraw 1
wait 3
loop
|