CS491

11
CS491 Robert Lai Winter 2006

description

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. - PowerPoint PPT Presentation

Transcript of CS491

Page 1: CS491

CS491

Robert Lai

Winter 2006

Page 2: CS491

Project name

Curve Bank Project Baravelle Spirals To create an n polygons and then with anoth

er 1/n polygon inside the polygon. Repeat the same step many times to create a tail like graph.

Page 3: CS491

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.

Page 4: CS491

Technical approach (2)

For examples:

Page 5: CS491

Platform

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

Page 6: CS491

import java.io.*;

Provides for system input and output through data streams, serialization and the file system.

Page 7: CS491

import java.awt.*;

Contains all of the classes for creating user interfaces and for painting graphics and images.

Page 8: CS491

import java.awt.event.*;

Provides interfaces and classes for dealing with different types of events fired by AWT components.

Page 9: CS491

import java.awt.geom.*;

Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry.

Page 10: CS491

import javax.swing.*;

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

Page 11: CS491

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