var x1, y1, x2, y2, x3, y3, x4, y4 : int
drawfillbox (0, 0, maxx, maxy, brightblue)
drawline (maxx div 2, maxy div 2 + 120, maxx div 2 - 50, maxy div 2 + 180, black)
drawline (maxx div 2, maxy div 2 + 120, maxx div 2 + 50, maxy div 2 + 180, black)
drawfilloval (maxx div 2 + 50, maxy div 2 + 180, 3, 3, black)
drawfilloval (maxx div 2 - 50, maxy div 2 + 180, 3, 3, black)
drawfillbox (maxx div 2 + 120, maxy div 2 + 120, maxx div 2 - 120, maxy div 2 - 120, black)
drawfillbox (0, 0, maxx, maxy div 2 - 180, brown)
drawbox (0, 0, maxx, maxy div 2 - 180, black)
for i : 0 .. 10
drawline (maxx div 2 - 150 + i, maxy div 2 - 180, maxx div 2 - 120 + i, maxy div 2 - 120, black)
drawline (maxx div 2 + 150 - i, maxy div 2 - 180, maxx div 2 + 120 - i, maxy div 2 - 120, black)
end for
loop
x1 := Rand.Int (maxx div 2 - 100, maxx div 2 + 100)
y1 := Rand.Int (maxy div 2 - 100, maxy div 2 + 100)
x2 := Rand.Int (maxx div 2 - 100, maxx div 2 + 100)
y2 := Rand.Int (maxy div 2 - 100, maxy div 2 + 100)
x3 := Rand.Int (maxx div 2 - 100, maxx div 2 + 100)
y3 := Rand.Int (maxy div 2 - 100, maxy div 2 + 100)
x4 := Rand.Int (maxx div 2 - 100, maxx div 2 + 100)
y4 := Rand.Int (maxy div 2 - 100, maxy div 2 + 100)
drawdot (x2 + 1, y2 + 1, white)
drawdot (x2, y2, white)
drawdot (x1 + 1, y1 + 1, black)
drawdot (x1, y1, black)
end loop
|