User:Alexander Roidl/hallowDrawbot

From XPUB & Lens-Based wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Hello Drawbot

FrameDuration.gif
#oval(200,200,200,200);
totalFrames=200


for frame in range(totalFrames):
    newPage(200, 200)
    # set the frame duration
    frameDuration(1/30)
    
    for x in range(50):
        for i in range(50):
            rect(10*i+frame*sin(x/5),10*sin(i/3)+10*x,1,1);
        print('frame:', frame)


# save the image as a mov on the desktop
saveImage('~/Desktop/frameDuration2.gif')