Part 1 of mini project based on exercise 1.2 in Computer Graphics for Java Programmers