Project #58594 - Java HW

Triangles! Oh Fractals!

 

Objective: 

Write a program in which draws (yes it actually makes a picture) a triangular fractal using recursion.  This is best if done using a java applet. 

 

Suggested Methodology

The idea for it is this

  1. First draw a filled equilateral triangle
  2. Next draw another filled equilateral triangle of a different color that’s upside down in the middle of that triangle
  3. Using the other triangles formed repeat step 2 until a pixel limit of 4 is reached

 

HINTS: 

  • It may be a good idea to look at the examples I gave 02/12/2015
  • The method fillPolygon(int[] xPoints, int[] yPoint, numberOfPoints) as called by the graphics device is important
  • The method setColor(Color aColor) is important for picking different colors to draw things.

 

 

Example Image of Results:

 

Subject Computer
Due By (Pacific Time) 02/19/2015 11:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy