import java.awt.Graphics; public class c02_sierpinski extends java.applet.Applet { public void paint(Graphics g) { LineTo lt = new LineTo(g); for (int y = 0; y < 256; y++) { for (int x = 0; x < 256; x++) { if ((x & (y-x)) == 0) { lt.setPixel(x+158-y/2, y+30); } } } } }