kopia lustrzana https://github.com/villares/sketch-a-day
no video export
rodzic
a5ec3b3ca7
commit
2a0298687a
|
|
@ -1,16 +1,16 @@
|
||||||
# Sigle tweet variation on 22a
|
# Sigle tweet variation on 22a
|
||||||
|
|
||||||
add_library('VideoExport')
|
# add_library('VideoExport')
|
||||||
def setup():
|
# def setup():
|
||||||
size(720,720)
|
# size(720,720)
|
||||||
global videoExport
|
# global videoExport
|
||||||
videoExport = VideoExport(this)
|
# videoExport = VideoExport(this)
|
||||||
videoExport.startMovie()
|
# videoExport.startMovie()
|
||||||
videoExport.setFrameRate(15)
|
# videoExport.setFrameRate(15)
|
||||||
frameRate(30)
|
# frameRate(30)
|
||||||
noiseSeed(20200122)
|
# noiseSeed(20200122)
|
||||||
# without video export use one line setup:
|
# without video export use one line setup:
|
||||||
# def setup():size(720,720)
|
def setup():size(720,720)
|
||||||
def draw():
|
def draw():
|
||||||
clear();noStroke();m=360;v=.002;s=sin
|
clear();noStroke();m=360;v=.002;s=sin
|
||||||
for n in range(m*2,1,-9):
|
for n in range(m*2,1,-9):
|
||||||
|
|
@ -19,8 +19,8 @@ def draw():
|
||||||
a=i*TAU/m;r=n*noise(m*s(f-a)*v+m,m*s(f+a)*v+m,m*s(f)*v);vertex(r*s(a)+m,r*cos(a)+m)
|
a=i*TAU/m;r=n*noise(m*s(f-a)*v+m,m*s(f+a)*v+m,m*s(f)*v);vertex(r*s(a)+m,r*cos(a)+m)
|
||||||
endShape(2)
|
endShape(2)
|
||||||
|
|
||||||
if frameCount % 2:
|
# if frameCount % 2:
|
||||||
videoExport.saveFrame()
|
# videoExport.saveFrame()
|
||||||
if frameCount == 360:
|
# if frameCount == 360:
|
||||||
videoExport.endMovie()
|
# videoExport.endMovie()
|
||||||
exit()
|
# exit()
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue