In this lab we are going to adorn our Mr. Blockhead drawing with some additional facial features. Start with the program we began writing the last class, except name your class
Lab4
and save it in a file named Lab4.java
. Make sure all of your
drawing commands are relative to the upper left corner of the picture.
drawLine(x1,y1,x2,y2)
command.
drawString("Some text",x,y);
writes the text
Some text
at coordinate (x,y) on the picture.
Create a new drawing from scratch that draws a bullseye like below. Put this code after the code for Mr. Blockhead. Make a 900 by 900 picture and give the biggest (outer) circle a diameter of 500. Don't for get to make the crosshairs in the center. Center your bullseye in the canvas.
When you finish make sure you have me or Dan check your work.