Difference between revisions of "Reference Talk:Potential Pattern"

From POV-Wiki
Jump to navigation Jump to search
(edited the wrong pattern, sorry)
Line 1: Line 1:
  
copied from the povray.beta-test newsgroup:
 
----
 
This version adds a new pigment pattern:
 
 
    pigment {
 
      user_defined {
 
        function { RED_FUNCTION },
 
        function { GREEN_FUNCTION },
 
        function { BLUE_FUNCTION },
 
        function { FILTER_FUNCTION },
 
        function { TRANSMIT_FUNCTION }
 
      }
 
    }
 
 
Each function is optional, in which case the corresponding component is
 
set to 0. For example, the following sets the colour to rgbft <x,y,0,0,z>:
 
 
    pigment {
 
      user_defined {
 
        function { x },
 
        function { y },
 
        ,,
 
        function { z }
 
      }
 
    }
 
----
 
 
The pattern is similar to `image_map` in that it directly specifies colours, rather than using a `colour_map` or `pigment_map`.
 

Revision as of 18:06, 19 December 2016