Exemple #1
0
 /// <summary>
 /// 生成
 /// </summary>
 /// <param name="material"></param>
 /// <returns></returns>
 public override Color Build(double material)
 {
     if (material > MidleValue)
     {
         return(ColorBuilderB.Build(material));
     }
     return(ColorBuilderA.Build(material));
 }
Exemple #2
0
 /// <summary>
 /// 构建
 /// </summary>
 /// <param name="material"></param>
 /// <returns></returns>
 public override Color Build(double material)
 {
     if (material < FistStep)
     {
         return(ColorBuilderA.Build(material));
     }
     else if (material < SecondStep)
     {
         return(ColorBuilderB.Build(material));
     }
     return(ColorBuilderC.Build(material));
 }