tma
Class TMA_TrapColoringAngleToOrigin2

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

class 
TrapColoring:TMA_TrapColoringAngleToOrigin2



Ultra Fractal Source

Toggle UF Source Code Display

 class TMA_TrapColoringAngleToOrigin2(common.ulb:TrapColoring) {
 public:
   float func Result(TrapMode pTrapMode)
     complex z = @colorFn(((pTrapMode.getUntransformedPoint(0)-@tz1)*@tz2)^@tz3)
     return 0.02 * abs(real(@colorFn2(imag(@colorFn3(z-@pImag*(0,1)) / real(@colorFn4(z-@pReal))))) * 180/#pi)
   endfunc
 default:
   title = "Angle to Origin 2 +"
   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
   func colorFn2
     caption = "Angle Fn"
     default = atan()
     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
   func colorFn3
     caption = "Imag Fn"
     default = ident()
     hint = "Changes the gradient mapping onto the elements"
   endfunc
   float param pImag
     caption = "Imag Offset"
     default = 0
     hint = "Changes the gradient mapping onto the elements"
   endparam
   func colorFn4
     caption = "Real Fn"
     default = ident()
     hint = "Changes the gradient mapping onto the elements"
   endfunc
   float param pReal
     caption = "Real Offset"
     default = 0
     hint = "Changes the gradient mapping onto the elements"
   endparam
 }
 


Constructor Summary
TMA_TrapColoringAngleToOrigin2()
           
 
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_TrapColoringAngleToOrigin2

public TMA_TrapColoringAngleToOrigin2()
Method Detail

Result

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

Overrides:
Result in class TrapColoring