Documentation Talk:Reference Section 5.4

From POV-Wiki
Revision as of 17:18, 2 December 2010 by Le Forgeron (talk | contribs) (typo inversion of <li> and .)
Jump to navigation Jump to search
  • update for incoming beta 40: new exterior types 7 & 8

interior and exterior specify special coloring algorithms. You can specify one of them or both at the same time. They only work with the fractal patterns.
EXTERIOR_TYPE is integer value between 0 and 8 (inclusive) and INTERIOR_TYPE is integer value between 0 and 6 (inclusive). When not specified, the default value of INTERIOR_TYPE is 0 and for EXTERIOR_TYPE 1.
FACTOR is a float. Unless specified otherwise, the return value of the pattern is multiplied by FACTOR before returning it. This can be used to scale the value range of the pattern when using interior and exterior coloring (this is often needed to get the desired effect). The default value of FACTOR is 1.

The different values of EXTERIOR_TYPE and INTERIOR_TYPE have the following meaning:

  • 0 : Returns just 1
  • 1 : For exterior: The number of iterations until bailout divided by ITERATIONS.
        Note: This is not scaled by FACTOR (since it is internally scaled by 1/ITERATIONS instead).
        For interior: The absolute value of the smallest point in the orbit of the calculated point
  • 2 : Real part of the last point in the orbit
  • 3 : Imaginary part of the last point in the orbit
  • 4 : Squared real part of the last point in the orbit
  • 5 : Squared imaginary part of the last point in the orbit
  • 6 : Absolute value of the last point in the orbit
  • 7 : For exterior only: the number of iterations modulo FACTOR and divided by FACTOR.
        Note: This is of course not scaled by FACTOR. The covered range is 0 to FACTOR-1/FACTOR.
  • 8 : For exterior only: the number of iterations modulo FACTOR+1 and divided by FACTOR.
        Note: This is of course not scaled by FACTOR. The covered range is 0 to 1.

--Le Forgeron 17:18, 2 December 2010 (UTC)