Zooming/streching turtle

A

Adrian M. Hanslik

Hello there,

I'm working on the well-known graphic demo 'turtle',
which will be included in a larger project,
where I have to simulate a route of a robot.

As I'd like to insert functions like zooming, streching etc.,
I'd like to know which classes are most suitable for that?

At the moment I'm using the drawLine-method for the path.
But it's hard to insert a zoom function to it,
as I have to save all coordinates an calculate the changes,
which is very time-consuming, it flickers, ...

Are there any better ideas for a solution?

Thank you very much
Adrian
 
P

Paul van Rossem

Hello there,

I'm working on the well-known graphic demo 'turtle',
which will be included in a larger project,
where I have to simulate a route of a robot.

As I'd like to insert functions like zooming, streching etc.,
I'd like to know which classes are most suitable for that?

At the moment I'm using the drawLine-method for the path.
But it's hard to insert a zoom function to it,
as I have to save all coordinates an calculate the changes,
which is very time-consuming, it flickers, ...

Are there any better ideas for a solution?

Thank you very much
Adrian
Have a look at Java2D
<http://java.sun.com/products/java-media/2D/index.jsp>, which includes
all kinds of transformations.

Paul.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top