POV-Ray : Newsgroups : povray.general : moving things around : Re: moving things around Server Time
1 May 2024 22:08:20 EDT (-0400)
  Re: moving things around  
From: Bald Eagle
Date: 24 May 2017 13:35:03
Message: <web.5925c40f52c7950dc437ac910@news.povray.org>
For a non-linear plot in a single equation, use

y=abs ( cos ( ((x-5)/20)*4*pi))

Then you can convert the cos wave to a triangular form by adding harmonics of
the cos, like they do in a Fourier synthesis.

(add 1/3*(cos(3*N)) + 1/7*(cos(7*N)) + 9, 11, 13, 15.....)

https://en.wikipedia.org/wiki/Triangle_wave


Post a reply to this message

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