in reply to [ASCII art graphs] Kisses
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [ASCII art graphs] Kisses
by ambrus (Abbot) on Jun 13, 2007 at 21:25 UTC | |
Very good idea. I used to draw such curves with basic too. So here's a perl one, just to disprove blazar's statement.
Update: I just want to mention that a classmate of mine has told me some years ago that you can render conic sections fast this way. This program uses basically the same algorithm except that it uses trigonometric functions instead of just square root. (Update: Yeah, except that this one is also cheating: where it says (p0+p1)/2, it should really use the p for (x0+x1)/2 really.) Update: posted changed version at Lissajous curves | [reply] [d/l] |
|
Re^2: [ASCII art graphs] Kisses
by blazar (Canon) on Jun 13, 2007 at 18:32 UTC | |
Nice effect. Reminds me of lissajous from my Basic days... I didn't know that particular program, in fact I've managed to (almost) always stay away from Basic but of course I'm familiar with Lissajous figures, which I also considered, although those would have required either ANSI sequences (and then are nice to be seen while being drawn - I wanted something to paste into email instead) or mangling with a buffer, whereas my program is both much simpler and gives me what I wanted, that is a potentially very long output. Lissajous figures by contrast are always constrained in a rectangle (if you don't consider rescaling, a square). | [reply] |