dmj5
Class DMJ_TrapColoringDistance

Object
  extended by common:Generic
      extended by common:TrapColoring
          extended by dmj5:DMJ_TrapColoringDistance

class 
TrapColoring:DMJ_TrapColoringDistance

This is identical to the version in common.ulb and is here for convenience.


Ultra Fractal Source

Toggle UF Source Code Display

 class DMJ_TrapColoringDistance(common.ulb:TrapColoring) {
   ; This is identical to the version in common.ulb and is here for convenience.
   
 public:
   import "common.ulb"
 
   func DMJ_TrapColoringDistance(Generic pparent)
     TrapColoring.TrapColoring(pparent)
   endfunc
   
   float func Result(TrapMode ptrapmode)
     if (@p_autoscale)
       return (ptrapmode.GetDistance(0) + ptrapmode.GetTexture(0)) / ptrapmode.GetThreshold()
     else
       return (ptrapmode.GetDistance(0) + ptrapmode.GetTexture(0))
     endif
   endfunc
 
 default:
   title = "Distance"
 
   int param v_dmj_trapcoloringdistance
     caption = "Version (DMJ_TrapColoringDistance)"
     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_dmj_trapcoloringdistance < 100
   endparam
 
   bool param p_autoscale
     caption = "Auto-scale Coloring"
     default = true
     hint = "If checked, coloring will be automatically scaled to match the trap threshold."
   endparam
 }
 


Constructor Summary
DMJ_TrapColoringDistance()
           
DMJ_TrapColoringDistance(Generic pparent)
           
 
Method Summary
 float Result(TrapMode ptrapmode)
          get a final result
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

DMJ_TrapColoringDistance

public DMJ_TrapColoringDistance(Generic pparent)

DMJ_TrapColoringDistance

public DMJ_TrapColoringDistance()
Method Detail

Result

public float Result(TrapMode ptrapmode)
Description copied from class: TrapColoring
get a final result

Overrides:
Result in class TrapColoring