0

Is there are any way to make LinearGradient with 3-4 or more GradientEntries without mixing their colors. When scaleX="0" colors are not mixed but middle colors almost invisible.

        <s:LinearGradient rotation="45" scaleX="0">
            <s:GradientEntry color="#ff0000" />
            <s:GradientEntry color="#00ff00" />
            <s:GradientEntry color="#0000ff" />
            <s:GradientEntry color="#ffff00" />
        </s:LinearGradient>
Yeldar Kurmangaliyev
  • 33,467
  • 12
  • 59
  • 101
Kinodegna
  • 23
  • 6

1 Answers1

0

Try giving them a hard coded ration e.g

        <s:GradientEntry color="#ff0000" ratio=".25"/>
        <s:GradientEntry color="#00ff00"  ratio=".25"/>
        <s:GradientEntry color="#0000ff"  ratio=".25"/>
        <s:GradientEntry color="#ffff00"  ratio=".25"/>