Saturday, October 6, 2012

Metaprogramming to Create PostScript Art

Students, in CMPSC 122: Intermediate Programming, recently wrote c++ programs in order to output PostScript code in order to create patterns from lines and circles.  This approach is an example of metaprogramming in which a program writes another program.



Optical Illusion, by Thomas Dippolito (CMPSC 122)

Multi-Colored Disks, by Gal Yaroslavsky (CMPSC 122)
Gal used multiple lines to create the multicolored disks.

Bulls-Eye, by Jeremy Saylor (CMPSC 122)