setscreen ("graphics")
setscreen ("graphics:788;502")
var x, y, r : int
const colo := yellow
const colo_eye := black
const colo_mouth := brightred
loop
randint (r, 1, 100)
randint (x, r, maxx - r)
randint (y, r, maxy - r)
const eye := r div 5
drawfilloval (x, y, r, r, colo)
drawoval (x, y, r, r, black)
drawfilloval (x + r div 3, y + r div 3, eye, eye, colo_eye)
drawfilloval (x - r div 3, y + r div 3, eye, eye, colo_eye)
drawarc (x, y - r div 4, r div 2, r div 3, 180, 360, colo_mouth)
for decreasing i : eye .. 1
drawfilloval (x + r div 3, y + r div 3, eye, i, colo_eye)
delay (50)
drawfilloval (x + r div 3, y + r div 3, eye, i, colo)
end for
for i : 1 .. eye
drawfilloval (x + r div 3, y + r div 3, eye, i, colo_eye)
delay (50)
drawfilloval (x + r div 3, y + r div 3, eye, i, colo)
end for
drawfilloval (x + r div 3, y + r div 3, eye, eye, colo_eye)
end loop
|