For Programmers: Free Programming Magazines  


Home > Archive > Java Help > October 2004 > Re: How to "draw" (print) "graphics" on black text screen (consol









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How to "draw" (print) "graphics" on black text screen (consol
Alex Hunsley

2004-10-30, 8:56 pm

Andrew Thompson wrote:
> On 30 Oct 2004 10:08:37 -0700, Avraham wrote:
>
>
>
>
> I don't see the point of using Java to (try to) interact so
> closely with the command line. It is not a language well
> suited for it and it destroys the x-platform nature of Java
> for the sake of a few lines on the screen.
>
> If your students are so hungry for pretty lines, it would be
> better to give your students a quick taste* of Java GUI's
> with a single frame where you overide paint.


Yup, totally agree... trying to do ascii art graphics is not practical
in this fashion (i.e. controlling ascii output location much like the
curses library would).

A way is *could* be done is to make an object that accepts drawing
operations, buffers/remembers them, and then when requested outputs a
block of X by Y ascii showing the given lines, triangles etc. (It would
just output spaces, of course, where nothing was drawn.)

If AWT and graphics were really, really cryptic and hard to do, I could
see why the original poster was requesting this; but AWT is pretty
simple to do once you've got started!

alex
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com