Is there a way to create a Fill with multiple colors?

1 view
Skip to first unread message

Mihai

unread,
Nov 19, 2009, 10:28:32 AM11/19/09
to Degrafa
Hi.

I found Degrafa to be one of the greatest Flex frameworks.

I started to work on a project where I am facing a problem. I need to
fill a path with multiple colors. (more than 2).

I created the path and I added a linear gradient fill which works fine
(playing with ratio gives me the result I wanted. So I can control the
exact amount of color. If I have two color: e.g. red and blue I can
control the amount of each color. 60% blue and 40% red.) The gradient
angle is not so important.

After adding a 3-rd color, the fill is not exactly what I want.

Is there a way to create a fill where I can control the amount of each
fill color (e.g. 4 colors: Reg(10%), Blue(40%), Green(20%) and Yellow
(30%).

Many thanks!

Mihai.

gwd

unread,
Nov 20, 2009, 3:59:46 AM11/20/09
to Degrafa

Hi,
I'm unclear exactly what you want from your description.

Do you mean you cannot achieve what you want using the ratio property
on the separate gradient stops?

Or do you mean that you want a hard switch between the colors (instead
of the usual blending effect you get between gradient stops)? You can
also achieve this with carefully selected ratio values.

Greg
Reply all
Reply to author
Forward
0 new messages