users
[Top] [All Lists]

Re: [cinjug-users] tracing a path

To: Jason Kretzer <jrkretzer@xxxxxxxxx>
Subject: Re: [cinjug-users] tracing a path
From: Chris McMahan <cmcmahan@xxxxxxx>
Date: Tue, 15 Mar 2005 08:45:47 -0500
Cc: users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
In-reply-to: <20050314223411.34025.qmail@web50101.mail.yahoo.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <20050314223411.34025.qmail@web50101.mail.yahoo.com>
The secret is to think of it not as a line, but as a series of
points. The applet you pointed out is merely drawing points on the
canvas at the specified interval.

Just extract the point's position at a certain point in your code as
it moves around, and draw another point at those coordinates.

- Chris

Jason Kretzer writes:
>Hello all:
>
>I am trying to draw a line behind a moving point so as
>to draw the path of the point. I have looked through
>the books that I have and I cannot seem to find
>exactly what I need.
>
>Here is a website that has an applet that shows what I
>am trying to do.  Notice how the path is left behind
>the moving ball image.
>
>http://www.phys.hawaii.edu/~teb/java/ntnujava/bouncingBall/bouncingBall.html
>
>Any other resources would be appreciated.
>
>Thanks for the help.
>
>-Jason
>

-- 
    ================================
    Chris McMahan | cmcmahan@xxxxxxx
    ================================


<Prev in Thread] Current Thread [Next in Thread>