POV-Ray : Newsgroups : povray.general : Clock intervals : Re: Clock intervals Server Time
24 Apr 2024 16:46:07 EDT (-0400)
  Re: Clock intervals  
From: Bald Eagle
Date: 18 Jul 2018 18:40:01
Message: <web.5b4fc1bc29c714e5458c7afe0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:

> I saw the answers with macro, and you asked for macro, but you could
> have used a linear spline instead.
>
> #declare Spline = spline { linear_spline
>   0, 0,
>   0.3, 0,
>   0.6, 1,
>   1, 1
> };
>
> #declare Variable = Spline(clock).x ;

Jerome:
This is VERY nice and elegant.
I figured it could be done with a spline, but I don't often use them and just
wanted to help solve the problem with a quick answer - but this is much better!

:)


Post a reply to this message

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