ck
Class Image

Object
  extended by common:Generic
      extended by common:Transform
          extended by common:UserTransform
              extended by ck:Image

class 
UserTransform:Image



Ultra Fractal Source

Toggle UF Source Code Display

 class Image(common.ulb:UserTransform) {
 
 
 public:
   ; @param pparent a reference to the object creating the new object; typically, 'this'
   func Image(Generic pparent)
     UserTransform.UserTransform(pparent)
 
 
        i=new @imageParam();
 endfunc
 
 
 
 
   complex func Iterate(complex pz)
   
   ;ratio=1;
   complex pix = (real(#screenpixel)/#width,imag(#screenpixel)/#height)
 
     color col=i.getColor(pix)
        float l=sqrt(red(col)*red(col)+green(col)*green(col)+blue(col)*blue(col))
    return pz+ l*@scale
   endfunc
 private:
 
   Image i
 
 default:
   title = "Image"
 
   Image param imageParam
     caption = "Image"
   endparam
   float param scale
     caption = "Scale"
     default=1
   endparam
 }
 


Constructor Summary
Image()
           
Image(Generic pparent)
           
 
Method Summary
 complex Iterate(complex pz)
          Transform a single point within a sequence
 
Methods inherited from class common:Transform
Init, IsSolid, IterateSilent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

Image

public Image(Generic pparent)
Parameters:
pparent - a reference to the object creating the new object; typically, 'this'

Image

public Image()
Method Detail

Iterate

public complex Iterate(complex pz)
Description copied from class: Transform
Transform a single point within a sequence

After a sequence has been set up with Init(), this function will be called once for each value in the sequence. Note that all values in the sequence must be processed in order (they cannot be processed out of order). If the sequence contains only one value, Init() will still be called and then Iterate() will be called just once.

Overrides:
Iterate in class Transform
Parameters:
pz - the complex value to be transformed
Returns:
the transformed value