User:Alexander Roidl/hallowDrawbot

From XPUB & Lens-Based wiki
< User:Alexander Roidl
Revision as of 08:39, 27 March 2018 by Alexander Roidl (talk | contribs) (Created page with "=Hello Drawbot= thumbnail <source lang="Python"> #oval(200,200,200,200); totalFrames=200 for frame in range(totalFrames): newPage(200, 200)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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')