dmj5
Class DMJ_TrapColoringAngleToOrigin

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

class 
TrapColoring:DMJ_TrapColoringAngleToOrigin



Ultra Fractal Source

Toggle UF Source Code Display

 class DMJ_TrapColoringAngleToOrigin(common.ulb:TrapColoring) {
 public:
   import "common.ulb"
 
   func DMJ_TrapColoringAngleToOrigin(Generic pparent)
     TrapColoring.TrapColoring(pparent)
   endfunc
   
   float func Result(TrapMode ptrapmode)
     float d = atan2(ptrapmode.GetUntransformedPoint(0))
     if (d < 0)
       d = d + #pi*2
     endif
     return d / (#pi * 2) + ptrapmode.GetTexture(0)
   endfunc
 
 default:
   title = "Angle to Origin"
 
   int param v_dmj_trapcoloringangletoorigin
     caption = "Version (DMJ_TrapColoringAngleToOrigin)"
     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_trapcoloringangletoorigin < 100
   endparam
 }
 


Constructor Summary
DMJ_TrapColoringAngleToOrigin()
           
DMJ_TrapColoringAngleToOrigin(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_TrapColoringAngleToOrigin

public DMJ_TrapColoringAngleToOrigin(Generic pparent)

DMJ_TrapColoringAngleToOrigin

public DMJ_TrapColoringAngleToOrigin()
Method Detail

Result

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

Overrides:
Result in class TrapColoring