More test files for assignment 2.


R. Clayton (rclayton@clayton.cs.monmouth.edu)
Wed, 17 Jan 2001 19:01:09 -0500 (EST)


You can use the shell script /export/opt/cs-509/pa2/make-sierpinski to generate
some test images for your program. The default is to draw a Sierpinski curve
of order 3; use the -o option to specify some other order. The higher the
order, the more lines in the drawing:

  cl /export/opt/cs-509/pa2/make-sierpinski -o1 | wc -l
        16

  cl /export/opt/cs-509/pa2/make-sierpinski -o2 | wc -l
        64

  cl /export/opt/cs-509/pa2/make-sierpinski | wc -l
       256

  cl /export/opt/cs-509/pa2/make-sierpinski -o4 | wc -l
      1024

  cl /export/opt/cs-509/pa2/make-sierpinski -o5 | wc -l
      4096

  cl

Use it like

  cl /export/opt/cs-509/pa2/make-sierpinski | your-program

or

  cl /export/opt/cs-509/pa2/make-sierpinski > image

  cl your-program < image

The PostScript file sierpinski-o4.ps in the same directory shows the order-4
Sierpinski curve created by "make-sierpinski -o 4".



This archive was generated by hypermail 2.0b3 on Thu May 17 2001 - 12:00:05 EDT