|
My question is about the RATIO attribute of the
Graphics.beginGradientFill() method. Example: graphics.beginGradientFill(GradientType.RADIAL,[0x0000FF,0x00F9FF],[.27,1],[0,255]); graphics.drawCircle(0,0,size); graphics.endFill(); Now, if my understanding is correct, a Ratio attribute of [0,255] will basically set one color to the outside edge of my circle and the other color will occur at the direct center. In other words, the entire gradient will be shown. What I am getting is the first color pushes the second color way out of the circle, not even showing it. Are the docs wrong? Is this not a ratio? Am I stupid? The answer to the last question is probably yes, but any help will be great. Excerpt from API docs:
|
- [flexcoders] Gradient Fill question Trey Long
- Re: [flexcoders] Gradient Fill question Trey Long
- RE: [flexcoders] Gradient Fill question Gordon Smith
- [flexcoders] Flex store services in web brows... Barrau Antoine
- RE: [flexcoders] Flex store services in w... Matt Chotin
- [flexcoders] Singleton inline initialization ... Sergey Kovalyov
- RE: [flexcoders] Singleton inline initial... Matt Chotin
- RE: [flexcoders] Singleton inline in... Sergey Kovalyov




