Last active
January 5, 2024 15:13
-
-
Save nnirror/79e3af8c7b786062fc50d4e28572790e to your computer and use it in GitHub Desktop.
gen7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('gen7') | |
.iter(101,()=>{ | |
this.silence(100000) | |
.rect2d(0, 0, 1000, 100, 1, 1000, 100) | |
.rect2d(0,0,Math.abs(1000-i*10),100,0,1000,100) | |
.reverse() | |
.saveimg('gen7/' + i, [_.envelope([1, 1, 333, 1, 0, 667]) | |
.dup(99), _.envelope([0, 1, 333, 1, 1, 333, 1, 0, 333]) | |
.dup(99), _.envelope([1, 0, 333, 0, 0, 333, 0, 1, 333]) | |
.dup(99) | |
], 1000, 100) | |
}).once(); | |
# then ran ffmpeg command: ffmpeg -framerate 24 -i %d.png -c:v libx264 -pix_fmt yuv420p gen7.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment