Results 1 to 2 of 2

Thread: polygon growing

  1. #1
    ericT is offline Member
    Join Date
    Sep 2011
    Posts
    1
    Rep Power
    0

    Default polygon growing

    Hi,
    need some urgent help:
    exercise: polygon has 7 points, automatically adding one new Point at the end and automatically removing one in the front, and so on.... so it changes the shape, step by step, but always having 7 points.

    Any idea how to do this?
    My idea would have been, a 7 element array, filled in the beginning with random numbers. And then going through this, step by step and changing them. Using Thread sleep and repaint to get it done. But this would just mean... it changes the shape but not removing one point.
    HELP!!!!

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,874
    Rep Power
    25

    Default Re: polygon growing

    it changes the shape but not removing one point.
    What does your current code do? What is the problem with removing a point?

Similar Threads

  1. Polygon array?
    By AcousticBruce in forum New To Java
    Replies: 6
    Last Post: 02-05-2011, 07:38 PM
  2. Polygon won't show up
    By pizzadude223 in forum Java 2D
    Replies: 5
    Last Post: 08-09-2010, 04:51 AM
  3. How to use Polygon class?
    By lost_soul in forum New To Java
    Replies: 8
    Last Post: 04-25-2010, 01:48 AM
  4. How to copy a polygon
    By cassysumandak in forum New To Java
    Replies: 6
    Last Post: 10-07-2009, 01:37 AM
  5. Reading growing files
    By ionna22 in forum Advanced Java
    Replies: 0
    Last Post: 10-20-2008, 05:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •