I'm doing a java project in which I have a rectangle which is drawn by the user by dragging the mouse and hence the size of the rectangle can vary for each execution. Now i need to draw a spiral within the rectangle according to the size of the rectangle so that when ever the rect is bigger the spiral has to be bigger and when smaller the spiral size should change accordingly.How can i do this?
Welcome to the JavaRanch! We don't have many rules around the ranch, but we do have a policy on displayed names... Please adjust your displayed name to meet the JavaRanch Naming Policy. User names must consist of a first name and a last name.