tma
Class TMA_TrapColoringAngleToOrigin

Object
  extended by common:Generic
      extended by common:TrapColoring
          extended by tma:TMA_TrapColoringAngleToOrigin

class 
TrapColoring:TMA_TrapColoringAngleToOrigin



Ultra Fractal Source

Toggle UF Source Code Display

 class TMA_TrapColoringAngleToOrigin(common.ulb:TrapColoring) {
 public:
   float func Result(TrapMode pTrapMode)
     float angle = real(@colorFn(atan2(pTrapMode.getUntransformedPoint(0)\
                    -@tz1)*@tz2)^@tz3)
     if angle < 0
       angle = angle + #pi * 2
     endif
     return angle / (#pi * 2)
   endfunc
 default:
   title = "Angle to Origin +"
   rating = recommended
   param version
     caption = "Version"
     default = 1.00
     visible = false
   endparam
   func colorFn
     caption = "Coloring Mode Fn"
     default = ident()
     hint = "Changes the gradient mapping onto the elements"
   endfunc
   complex param tz1
     caption = "Color Offset"
     default = (0,0)
     hint = "Changes the gradient mapping onto the elements"
   endparam
   complex param tz2
     caption = "Color Strength"
     default = (1,0)
     hint = "Changes the gradient mapping onto the elements"
   endparam
   complex param tz3
     caption = "Color Power"
     default = (1,0)
     hint = "Changes the gradient mapping onto the elements"
   endparam
 
 }
 


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

Constructor Detail

TMA_TrapColoringAngleToOrigin

public TMA_TrapColoringAngleToOrigin()
Method Detail

Result

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

Overrides:
Result in class TrapColoring