CafeWall.JAVA.docx - \/CSE 142\/TA:Cailin Winston\/Assignment#3\/This program will use the graphics toolkit'DrawingPanel to replicate the cafe wall illusion

CafeWall.JAVA.docx - /CSE 142/TA:Cailin...

This preview shows page 1 out of 1 page.

//04/23/19 //CSE 142 //TA:Cailin Winston //Assignment #3 // //This program will use the graphics toolkit 'DrawingPanel' to replicate the cafe wall illusion import java.awt.*; public class CafeWall { public static final int MORTAR = 4; public static void main(String[] args) { DrawingPanel panel = new DrawingPanel(650,400); panel.setBackground(Color.GRAY); Graphics g = panel.getGraphics(); drawRow(4, 20, 0, 0, g); drawRow(5, 30, 50, 70, g); drawGrid(0, 4, 25, 10, 150, g); drawGrid(10, 3, 25, 250, 200, g); drawGrid(10, 5, 20, 425, 180, g);
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '15
  • Stuart Reges
  • Harshad number, Harry Connick, Jr., public class CafeWall, public static final int MORTAR, Cailin Winston

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture