cs491

Post on 30-Dec-2015

40 Views

Category:

Documents

3 Downloads

Preview:

Click to see full reader

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

CS491

Robert Lai

Winter 2006

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.

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.

Technical approach (2)

For examples:

Platform

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

import java.io.*;

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

import java.awt.*;

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

import java.awt.event.*;

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

import java.awt.geom.*;

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

import javax.swing.*;

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

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

top related