Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS491 Robert Lai Winter 2006. Project name Curve Bank Project Baravelle Spirals To create an n polygons and then with another 1/n polygon inside the polygon.

Similar presentations


Presentation on theme: "CS491 Robert Lai Winter 2006. Project name Curve Bank Project Baravelle Spirals To create an n polygons and then with another 1/n polygon inside the polygon."— Presentation transcript:

1 CS491 Robert Lai Winter 2006

2 Project name Curve Bank Project Baravelle Spirals To create an n polygons and then with another 1/n polygon inside the polygon. Repeat the same step many times to create a tail like graph.

3 Technical approach First of all, need to design what kind of polygon the user want to create. Next, generate the base polygon and then from the mid-point of each sides of the base polygon create another of 1/n size of the same polygon.

4 Technical approach (2) For examples:

5 Technical approach (3) 2a (x, y) (y – a* Math.sqrt(3)) a (x + a, (y – a* Math.sqrt(3)))(x - a, (y – a* Math.sqrt(3))) 60

6 Platform Java NetBeans 5.0 Open source import java.io.*; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import javax.swing.*;

7 import java.io.*; Provides for system input and output through data streams, serialization and the file system.

8 import java.awt.*; Contains all of the classes for creating user interfaces and for painting graphics and images.

9 import java.awt.event.*; Provides interfaces and classes for dealing with different types of events fired by AWT components.

10 import java.awt.geom.*; Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry.

11 import javax.swing.*; Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.

12 Status Able to draw a simple Triangle without user input Still need to work on how to generate the polygon recursively Need user input Need color change


Download ppt "CS491 Robert Lai Winter 2006. Project name Curve Bank Project Baravelle Spirals To create an n polygons and then with another 1/n polygon inside the polygon."

Similar presentations


Ads by Google