kcc5
Class KCC_RedTan2Map

Object
  extended by common:Generic
      extended by common:GradientWrapper
          extended by kcc5:KCC_ColorMapBase
              extended by kcc5:KCC_RedTan2Map

class 
KCC_ColorMapBase:KCC_RedTan2Map

Class for defining the preset Red/Tan 2 color map.

This class defines the Red/Tan 2 color map and allows the user to customize any of the ranges as desired.

For an example of what this map looks like, click here.


Ultra Fractal Source

Toggle UF Source Code Display

 class KCC_RedTan2Map( KCC_ColorMapBase ) {
 ; Class for defining the preset Red/Tan 2 color map.
 ; <p>
 ; This class defines the Red/Tan 2 color map and allows the user to
 ; customize any of the ranges as desired.
 ; <p>
 ; For an example of what this map looks like,
 ; <a href="../additional/kcc5/images/Red Tan 2 Map.jpg">click here</a>.
 ;
 public:
   import "common.ulb"
   
   ; Constructor
   func KCC_RedTan2Map( Generic pparent )
     KCC_ColorMapBase( pparent )
 
     ;
     colorMap[0,0] = @redTan2Max1, colorMap[0,1] = @redTan2Min1
     colorMap[1,0] = @redTan2Max2, colorMap[1,1] = @redTan2Min2
     colorRanges = @colorRanges
   endfunc
 
   ; Initialize the color map using the user selected parameters.
   func initColorMap()
   endfunc
 
 private:
 
 default:
   title = "Red/Tan 2 Map"
 
   int param v_KCC_RedTan2Map
     caption = "Version (KCC_RedTan2Map)"
     default = 100
     hint = "This version parameter is used to detect when a change has been \
             made to the formula that is incompatible with the previous version. \
             When that happens, this field will reflect the old version number to \
             alert you to the fact that an alternate rendering is being used."
     visible = @v_KCC_RedTan2Map < 100
   endparam
 
   int param colorRanges
     caption = "# of Ranges"
     min = 1
     max = 2
     default = 2
   endparam
 
 ;--------------------------------------------------------------------
 ; Color Defaults for Red/Tan 2
 ;--------------------------------------------------------------------
 
   heading
     caption = "    Red/Tan 2 Map Settings"
     visible = (@customize)
   endheading
 
   color param redTan2Max1
     caption = "Color Range 1 High"
     default = rgb(255/255,32/255,32/255)
     hint = "Specifies the color at the high end of Range #1."
     visible = (@customize)
   endparam
 
   color param redTan2Min1
     caption = "Color Range 1 Low"
     default = rgb(96/255,0/255,0/255)
     hint = "Specifies the color at the low end of Range #1."
     visible = (@customize)
   endparam
 
   color param redTan2Max2
     caption = "Color Range 2 High"
     default = rgb(255/255,208/255,152/255)
     hint = "Specifies the color at the high end of Range #2."
     visible = (@customize)
   endparam
 
   color param redTan2Min2
     caption = "Color Range 2 Low"
     default = rgb(128/255,108/255,60/255)
     hint = "Specifies the color at the low end of Range #2."
     visible = (@customize)
   endparam
 }
 


Constructor Summary
KCC_RedTan2Map()
           
KCC_RedTan2Map(Generic pparent)
          Constructor
 
Method Summary
 void initColorMap()
          Initialize the color map using the user selected parameters.
 
Methods inherited from class kcc5:KCC_ColorMapBase
getColorChannel, perturb8RangeMap, perturbRanges
 
Methods inherited from class common:GradientWrapper
getColor
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

KCC_RedTan2Map

public KCC_RedTan2Map(Generic pparent)
Constructor


KCC_RedTan2Map

public KCC_RedTan2Map()
Method Detail

initColorMap

public void initColorMap()
Initialize the color map using the user selected parameters.