This was a project to get myself a little better at Javascript. I could write the odd expression before this, but nothing too fancy! Actually hugely enjoyed the experience - lots of problem solving, but so much information available online!
The code does the following:
Takes an input image or video and divides it into grid squares,
Samples the grid pixel colours and averages out the brightness value,
Assigns a character corresponding to the brightness,
Repeats for all grids,
Repeats for all frames,
Outputs the result into a text layer.
Features:
Variable grid size (smaller or larger ASCII
Grid sample quality/ accuracy
Works with animated sequences