BlendShaper::setBlend()
Description
Sets the proportion of blending the two shaping functions of the blender. Setting it to 0 is identical to the first shaping function while setting to 1 shows only the second shaping function.
Example
import megamu.shapetween.*;

BlendShaper blend;
Shaper lens;

void setup(){
  lens = new CircularShaper(Shaper.SEAT);
  blend = new BlendShaper(lens);
}

void draw(){
  background(255);
  
  beginShape();
  for( float i=0; i<=1; i+= 0.05 )
    vertex( i*width, blend.shape( i )*height );
  endShape();
}

void mouseMoved(){
  float transition = norm( mouseX, 0, width );
  float mix = norm( mouseY, height, 0 );
  lens.setTransitionPoint( transition );
  blend.setBlend( mix );
}
Syntax
setBlend(proportion)
Parameters
proportion
The amount to mix the second shaper with the first shaper
Related
setShaperOne()
setShaperOne()
setShaperTwo()
BlendShaper