mmf
Class MMF_DefaultGradient

Object
  extended by common:Generic
      extended by mmf:MMF_UserGradient
          extended by mmf:MMF_DefaultGradient

class 
MMF_UserGradient:MMF_DefaultGradient



Ultra Fractal Source

Toggle UF Source Code Display

 class MMF_DefaultGradient(MMF_UserGradient) {
 public:
   import "common.ulb"
   ; <p>
   ; @param pparent typically 'this' from the parent or zero
   func MMF_UserGradient(Generic pparent)
     m_Parent = pparent
   endfunc
   ; <p>
   ; @param i gradient index
   ; @return colour from gradient
   color func GetColour(float i)
     return gradient(i)
   endfunc
 default:
   title = "MMF Default Gradient"
 }
 


Constructor Summary
MMF_DefaultGradient()
           
 
Method Summary
 color GetColour(float i)
          
 void MMF_UserGradient(Generic pparent)
          
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

MMF_DefaultGradient

public MMF_DefaultGradient()
Method Detail

MMF_UserGradient

public void MMF_UserGradient(Generic pparent)

Parameters:
pparent - typically 'this' from the parent or zero

GetColour

public color GetColour(float i)

Overrides:
GetColour in class MMF_UserGradient
Parameters:
i - gradient index
Returns:
colour from gradient