- Basic Code
- Abstraction 1: Squares
- Abstraction 2: Lines
- Abstraction 3: Text
The following code will translate the pixel information from images into geometrical shapes, such as dots, lines, circles etc. The process is similar to the reprographic technique of halftone, which simulates continuous tone imagery through the use of dots, varying either in size or in spacing. Where continuous tone imagery contains an infinite range of colors or grays, the halftone process reduces visual reproductions to an image that is printed with only one color of ink, in dots of differing size (amplitude modulation) or spacing (frequency modulation). This reproduction relies on a basic optical illusion: the tiny halftone dots are blended into smooth tones by the human eye.
The same kind of information can however also be used to generate G-Code for CNC milling machines or laser cutters. Check out Mathias Bernhard’s fPix (http://www.mathiasbernhard.ch/fpix-pixel-art) or Design Machine by Sebastian Bächer, Hans Sachs and Cornelia Vollmert (http://design-machine.com).