Created
July 3, 2020 14:02
-
-
Save AEnMe/69c3f99b5b0cc1b292b39b0b0a314e54 to your computer and use it in GitHub Desktop.
To create binary text
This file contains 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
nCharac = 5; // How many characters / line | |
lines = 3; // How many lines | |
dur = 10; // frames holding | |
seed = 0; | |
r = ""; | |
i = seed + index; | |
seedRandom((dur == 0) ? i : i + Math.floor(time / dur / thisComp.frameDuration), 1); | |
for (j = 0; j < lines; j++) { | |
for (i = 0; i < nCharac; i++) { | |
r += Math.round(random()); | |
} | |
r += "\r"; | |
} | |
r; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment