common
Class DefaultColorMerge

Object
  extended by common:Generic
      extended by common:ColorMerge
          extended by common:DefaultColorMerge
Direct Known Subclasses:
IllumColorMerge, MMF_ExtendedColorMerge, MMF_RGBColorMerge

class 
ColorMerge:DefaultColorMerge

This color blend class provides easy access to the built-in merging functions.


Ultra Fractal Source

Toggle UF Source Code Display

 class DefaultColorMerge(ColorMerge) {
   ; This color blend class provides easy access to the built-in
   ; merging functions.
   
 public:
   func DefaultColorMerge(Generic pparent)
     ColorMerge.ColorMerge(pparent)
   endfunc
 
   color func Merge(color pbottom, color ptop)
     return @f_mergemode(pbottom, ptop)
   endfunc
   
 default:
   title = "Default Color Merge Modes"
   
   int param v_defaultcolormerge
     caption = "Version (DefaultColorMerge)"
     default = 100
     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_defaultcolormerge < 100
   endparam
 
   color func f_mergemode
     caption = "Merge Mode"
     default = mergenormal()
     hint = "Sets the method used to merge input colors with."
   endfunc
 }
 


Constructor Summary
DefaultColorMerge()
           
DefaultColorMerge(Generic pparent)
           
 
Method Summary
 color Merge(color pbottom, color ptop)
          Color merging function
 
Methods inherited from class common:ColorMerge
FullMerge, IsOpaque, Stack
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

DefaultColorMerge

public DefaultColorMerge(Generic pparent)

DefaultColorMerge

public DefaultColorMerge()
Method Detail

Merge

public color Merge(color pbottom,
                   color ptop)
Description copied from class: ColorMerge
Color merging function

Overrides:
Merge in class ColorMerge
Parameters:
pbottom - color on the bottom
ptop - color on the top
Returns:
merged color; alpha value should be from the top color or composing won't work right