Skip to content

Commit

Permalink
moire pattern with lines
Browse files Browse the repository at this point in the history
  • Loading branch information
g-ar committed Nov 11, 2017
1 parent f00b30f commit 390461d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions v3/moire_lines.cfdg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
startshape start

// cfdg moire_lines.cfdg -s 1080 -a 15x25 -o ta%f.png
// ffmpeg -r 25 -i ./ta%3d.png -c:v libx264 out.mp4

CF::Time = [time 0 180]
CF::Background = [b 1]
CF::Size = [s 3]

path line {
MOVETO(0,0)
LINETO(0,2)
STROKE(0.01)[]
}

shape moire {
loop 100 [x 0.02]
line[]
}

shape start {
moire[x -1 y -1 time 0 180]
xs = cos(ftime()) - sin(ftime())
ys = sin(ftime()) + cos(ftime())
moire[x -xs y -ys r ftime() time 0 180]
}

0 comments on commit 390461d

Please sign in to comment.