Don’t worry, the program I wrote for this is needlessly complicated. I made it like that to make it easier to output. You could start doing it with images and getting frames of images from it and after that just get the colors from the pixels. I am sure you could do it soon, but the best way to progress is with taking a step at the time. After all, “Even with the smallest step forwards, you are still making a difference”
Try to replicate this program with your own skills. After that, try to make it usable with colors. After that create a program that reads all of the frames out of the movie, put them through ascii-isation function and save it on the computer. When you are done, put the whole thing into the processing movie maker, which will return a .mov file, that you can put into a video editor software and transform it to .mp4
I remember messing around with the ASCII webcam example, and trying to make it work in a grid, but ending nowhere, but I will use your code as reference when I try again, but before I have a few ideas I want to work first. If I run into trouble in the future regarding this topic I may come ask for help.
((invert)? a : b) is a useful thing.
The actual structure of it is: ((boolean)? valueIfTRUE : valueIfFALSE)
it is useful if you have a lot of conditions and don’t want to keep using if() else(). valueIf----- can only be a value. You cannot do something like ((random(100)>50)? doThis() : doThat())
I hope this short “guide” will be of help in any way in your coding.
is there a way to get the ascii art out of the console and to portrait as a picture if you run the code? cause atm the picture is shown as pixels instead of the ascii characters and the characters only show in the console
replace this with text(replace, i*scale, j * scale) and define variable scale as width/w. this should do the trick. However, I haven’t seen the code in 15 months, so it may be a bit different. Good luck