Skip to content

Instantly share code, notes, and snippets.

@AEnMe
Created July 3, 2020 14:02
Show Gist options
  • Save AEnMe/69c3f99b5b0cc1b292b39b0b0a314e54 to your computer and use it in GitHub Desktop.
Save AEnMe/69c3f99b5b0cc1b292b39b0b0a314e54 to your computer and use it in GitHub Desktop.
To create binary text
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