Example #1
0
#pragma warning restore 649

        public override void ModifyVertices(List <UIVertex> vertexList)
        {
            var c1 = topColor.RGBToHSV();
            var c2 = bottomColor.RGBToHSV();

            GradientHelper.modifyVertices(
                vertexList, (c, t) => {
                var a = ((Color)c).RGBToHSV();
                var b = Color.Lerp(c2, c1, t);
                return(new Color(a.r + b.r, a.g * b.g, a.b * b.b).HSVToRGB());
            },
                type
                );
        }
Example #2
0
 public override void ModifyVertices(List <UIVertex> vertexList) =>
 GradientHelper.modifyVertices(
     vertexList, (c, t) => mult(c, Color32.Lerp(bottomColor, topColor, t)), type, useGraphicAlpha
     );
Example #3
0
 public override void ModifyVertices(List <UIVertex> vertexList)
 {
     GradientHelper.modifyVertices(vertexList, (c, t) => Color32.Lerp(bottomColor, topColor, t), type);
 }