From 3eda06572b3a76dc143582d9a9983a8b0543ec46 Mon Sep 17 00:00:00 2001 From: John Honniball Date: Tue, 25 Aug 2020 23:54:54 +0100 Subject: [PATCH] Make the lissajous plots smoother. Maybe overdone, will need to test on real plotter(s). Makes the HPGL quite a bit bigger, which may be a problem with serial interfaced plotters (e.g. HP 7550A). --- lissajous.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lissajous.c b/lissajous.c index d47ce41..2900cc9 100644 --- a/lissajous.c +++ b/lissajous.c @@ -58,10 +58,10 @@ int main(int argc, char * const argv[]) lineto(xc, maxy); /* Draw four simple Lissajous curves */ - lissajous(w4, h4, side, 1.0, 3.0, 0.0, 144); - lissajous(xc + w4, h4, side, 5.0, 6.0, 0.0, 144); - lissajous(w4, yc + h4, side, 3.0, 5.0, 0.0, 144); - lissajous(xc + w4, yc + h4, side, 7.0, 9.0, 0.0, 144); + lissajous(w4, h4, side, 1.0, 3.0, 0.0, 3 * 72); + lissajous(xc + w4, h4, side, 5.0, 6.0, 0.0, 5 * 6 * 72); + lissajous(w4, yc + h4, side, 3.0, 5.0, 0.0, 3 * 5 * 72); + lissajous(xc + w4, yc + h4, side, 7.0, 9.0, 0.0, 7 * 9 * 72); plotend();