Expression 6: "a" equals 2 "g" left parenthesis, "x" , 0 , 0.5 , right parenthesisa=2gx,0,0.5
6
scale 0.5,1.0 range to 0.0,1.0:
7
Expression 8: "b" equals 2 "g" left parenthesis, "x" minus 0.5 , 0 , 0.5 , right parenthesisb=2gx−0.5,0,0.5
8
smoothstep both and scale sum to 0.0,1.0 range:
9
Expression 10: "f" equals 0.5 times left parenthesis, "s" left parenthesis, "a" , right parenthesis plus "s" left parenthesis, "b" , right parenthesis , right parenthesisf=0.5·sa+sb