mmf
Class MMF_TrapShapeAngle

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by mmf:MMF_TrapShapeAngle

class 
TrapShape:MMF_TrapShapeAngle

Trapping values based on the angle of z.


Ultra Fractal Source

Toggle UF Source Code Display

 class MMF_TrapShapeAngle(common.ulb:TrapShape) {
 ; Trapping values based on the angle of z.<br>
 public:
   import "common.ulb"
 
   func MMF_TrapShapeAngle(Generic pparent)
     TrapShape.TrapShape(pparent)
   endfunc
 
   float func Iterate(complex pz)
     TrapShape.Iterate(pz + @offset)
     if @mode=="Raw Angles"
       return atan2(pz + @offset)
     elseif @mode=="Absolute Angles"
       return abs(atan2(pz + @offset))
     elseif @mode=="All Angles"
       return #pi + atan2(pz + @offset)
     elseif @mode=="Cosines"
       return cos(0.5*atan2(pz + @offset))
     else;if @mode=="All Angles 2"
       float r = atan2(pz + @offset)
       if r<0.0
         r = r + 2.0*#pi
       endif
       return r
     endif
   endfunc
 
 default:
   title = "Angles (of z)"
   heading
     text = "Intended for use with 'MMF Smooth Orbit Traps (Gradient)' or \
             similar smoothing formulas since smoothing is usually required."
   endheading
   int param mode
     caption = "Method"
     enum = "Raw Angles" "Absolute Angles" "All Angles" "Cosines" \
            "All Angles 2"
     default = 3
     hint = "Inspired by Cilia mode colouring."
   endparam
   complex param offset
     caption = "Z Offset"
     default = (0,0)
     hint = "Offsets the z value by this amount - good for animation."
   endparam
 }
 


Constructor Summary
MMF_TrapShapeAngle()
           
MMF_TrapShapeAngle(Generic pparent)
           
 
Method Summary
 float Iterate(complex pz)
          call this for each iteration being trapped
 
Methods inherited from class common:TrapShape
GetColorChannel, GetTextureValue, GetTransformedPoint, Init, IterateSilent, SetThreshold
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

MMF_TrapShapeAngle

public MMF_TrapShapeAngle(Generic pparent)

MMF_TrapShapeAngle

public MMF_TrapShapeAngle()
Method Detail

Iterate

public float Iterate(complex pz)
Description copied from class: TrapShape
call this for each iteration being trapped

Overrides:
Iterate in class TrapShape