reb
Class IMageTrapModeTwoFarthest

Object
  extended by common:Generic
      extended by reb:ImageTrapMode
          extended by reb:ImageTrapModeWithThreshold
              extended by reb:ImageTrapModeSecondFarthest
                  extended by reb:IMageTrapModeTwoFarthest

class 
ImageTrapModeSecondFarthest:IMageTrapModeTwoFarthest

trap mode variant based upon a class of Damien Jones


Ultra Fractal Source

Toggle UF Source Code Display

 class IMageTrapModeTwoFarthest(ImageTrapModeSecondFarthest) {
 ; trap mode variant based upon a class of Damien Jones
 public:
   import "common.ulb"
 
   ; constructor
   func ImageTrapModeTwoFarthest(Generic pparent)
     ImageTrapModeSecondFarthest.ImageTrapModeSecondFarthest(pparent)
   endfunc
 
   ; call in the final section of a coloring formula/class
   func Result()
     m_Distances[0] = (m_Distances[0] + m_Distances[1]) / 2
     m_Textures[0] = (m_Textures[0] + m_Textures[1]) / 2
     m_UntransformedPoints[0] = (m_UntransformedPoints[0] + m_UntransformedPoints[1]) / 2
     m_TransformedPoints[0] = (m_TransformedPoints[0] + m_TransformedPoints[1]) / 2
     m_IterationPoints[0] = round((m_IterationPoints[0] + m_IterationPoints[1]) / 2)
     m_ImagePoints[0] = (m_ImagePoints[1]+m_ImagePoints[0])/2
   endfunc
 
 default:
 title = "Two Farthest"
   int param v_twofarthest
     caption = "Version (Two Farthest)"
     default = 101
     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_twofarthest < 101
   endparam
 }
 


Constructor Summary
IMageTrapModeTwoFarthest()
           
 
Method Summary
 void ImageTrapModeTwoFarthest(Generic pparent)
          constructor
 void Result()
          call in the final section of a coloring formula/class
 
Methods inherited from class reb:ImageTrapModeSecondFarthest
Init, Iterate
 
Methods inherited from class reb:ImageTrapModeWithThreshold
EdgeFade, GetAThreshold, GetThreshold, SetAThreshold, SetThreshold, UsesAThreshold, UsesThreshold
 
Methods inherited from class reb:ImageTrapMode
GetColor, GetDistance, GetIteration, GetTexture, GetTransformedPoint, GetUntransformedPoint, IsSolid, IterateSilent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

IMageTrapModeTwoFarthest

public IMageTrapModeTwoFarthest()
Method Detail

ImageTrapModeTwoFarthest

public void ImageTrapModeTwoFarthest(Generic pparent)
constructor


Result

public void Result()
call in the final section of a coloring formula/class

Overrides:
Result in class ImageTrapModeSecondFarthest