POV-Ray : Newsgroups : povray.general : Function based patterns ... value returned from function ... : Re: Function based patterns ... value returned from function ... Server Time
2 Aug 2024 04:19:13 EDT (-0400)
  Re: Function based patterns ... value returned from function ...  
From: Slime
Date: 18 Jan 2005 23:52:42
Message: <41ede79a$1@news.povray.org>
> I am going to guess that the integer portion is thrown away ... but that
is
> a guess ...

Pretty much. One of your examples was wrong:

> -56.6 -> 0.6

-56.6 -> 0.4

Use the equation x - floor(x).

(Although I think 1.0 maps to 1.0, so x - floor(x) might not be exactly
accurate.)

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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