ProblemYou want to draw lines using gradient styles. SolutionUse the Graphics.lineGradientStyle( ) method. DiscussionThe lineGradientStyle( ) method allows you to draw lines with gradient styles. You must still call lineStyle( ) first. However, once you've set the basic line style properties, you can call lineGradientStyle( ) to apply a gradient style to lines. The parameters for the lineGradientStyle( ) method are exactly the same as the parameters for the beginGradientFill( ) method. See AlsoRecipe 7.13 for more about parameters. |