for
and color
statements to make a pixel move.
function draw_person(x,y,c)
color(c)
width(2)
circle(x,y,5)
line(x,y-5,x,y-15)
line(x,y-15,x-5,y-25)
line(x,y-16,x+5,y-25)
line(x-10,y-10,x+10,y-10)
end
pcls(0)
for x=0,100,10 do
draw_person(x,0,4)
pcls(0)
end
for x=
for-loop to count over the screen positions that you want
your pixel to move over (try starting at -100 and moving to 100). Your step size for this count will control
the speed of the pixel. Next, select a color for which the pixel should be drawn in the color()
line.