next up previous
Next: And now for something Up: Assignment 5: Moiré patterns Previous: Draw two overlapping targets

Draw a radial Moiré pattern


\begin{figure}
\centerline{
\psfig {figure=fig_ass5.eps,height=2.0in}
}\end{figure}

1.
Write a method with the following prototype:
public void paintRadial (Graphics g, int width, int height)

2.
This method should draw a pattern like the figure on the next page, except that the distance between the radial lines should be smaller. Small enough that you start to see Moiré patterns, that is.



Allen B. Downey
3/3/1998