1 / 11

CS491

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. Repeat the same step many times to create a tail like graph. Technical approach.

Download Presentation

CS491

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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. Platform • Java NetBeans 5.0 • Open source • import java.io.*; • import java.awt.*; • import java.awt.event.*; • import java.awt.geom.*; • import javax.swing.*;

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

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

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

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

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

  11. 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

More Related