POV-Ray : Newsgroups : povray.general : re Lissajous figures : Re: re Lissajous figures Server Time
16 Nov 2024 09:22:20 EST (-0500)
  Re: re Lissajous figures  
From: Ken
Date: 6 Sep 1998 07:50:27
Message: <35F2687A.9409128B@pacbell.net>
Here is a string that generates a figure eight plucked from
an old o-scope manual.

The equation:
x=sin(b t+c);y=sin t   {0,2p}   {b:2}   {c:p}

The ; separate the parametric equations
The first {} with the comma is the range.
The second and third {} with the colon set variables b and c
p = pi

How would this be plugged into Peters code ?

Ken

mick wrote:

> Great little utility Peter
>
> Took the liberty of abusing it
>
> When I was a kid I remember feeding two signal generators into an
> oscilloscope
>
> So I modified yor code to do that
>
> Add
> #declare coeff2_X = ?; // where ? is any number multiples of coeff_X work
> best
> and add
>
> + sin(2*pi*(dummy+phase_X)*coeff2_X),
>
> to
>
> <sin(2*pi*(dummy+phase_X)*coeff_X)
>
> to get
>
> <sin(2*pi*(dummy+phase_X)*coeff_X) + sin(2*pi*(dummy+phase_X)*coeff2_X),
>
> Gives some amazing patterns
>
> Have Fun
>
> Mick Hazelgrove


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.