Hello there. I’m new to programming in Processing and using JavaScript in general. I’m interested in driving an idea I have through Processing concerning accessing the pixel data from digital images. I've been wanting to manipulate digital images by converting their pixels into seamlessly-generated-connected-typographic-script that would change form to represent the pixel’s brightness/darkness values (or a number of pixels let’s say 20 x 20 and getting an average from that) with a straight line going horizontally across to represent a white pixel; for darker pixels, the program would then tell the line to move while going across a matrix to create darker values. The end-results would look like something similar to an image ran through an img to ASCII generator, however I want the program to generate it’s own idiosyncratic typography to represent the pixels or the groups of pixels its accessing. Lastly the image would be converted into a .stl file as I would like to print them out on my 3d printers. It is critical for the lines to begin and end on the same axis while going across a matrix, this ensures all the lines are connected, and thus making it much easier to physically remove off the build-plate after it’s printed.
Considering the 3d printing portion (and to make physically larger images) I would have to make the program grid out the image into sections before it’s processed. So when an image is ran through the program there would be a group of .stl files to be printed out and then they could put together to make a larger piece. As an alternative maybe the program could output the files/lines with alpha/transparency channels, then I could possibly extrude them in a program like Blender. Similarly I have been doing this process using ASCII, but in a very manual way by creating my own bilateral typefaces and converting them to 3d:
So my first question would be is this possible to do in Processing? I would imagine yes, and there would many ways I could go about doing it.
Secondly, could anyone recommend where could I start - I already did the “Images and Pixels” lesson on the processing website. However there’s still a vast amount I still do not understand considering all the syntax. Honestly I do not have a good foundation in programming, but I believe I think like a programmer.
I know there are still a lot of factors to take into consideration such as the output of the lines: will they be vector, bitmap, or could the program actually make a typeface then convert that into an extruded 3d model? Also, the images would have to be down-sampled as well so the lines generated by the computer can be seen. I would imagine it would be difficult to see the lines if they were referencing every pixel in a 8000 x 8000 pixel grid.