renxin111 / andengine

Automatically exported from code.google.com/p/andengine
0 stars 0 forks source link

Add possibility to use multiple colors and positions when creating a LinearGradientFillTextureSourceDecorator #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently LinearGradientFillTextureSourceDecorator is using Android's 
LinearGradient 2nd constructor which allows for only two colors on a gradient, 
I'm attaching a patch which adds the ability to use the 1st constructor which 
allows for multiple colors and positions for gradients, and is of course 
backwards compatible.

Original issue reported on code.google.com by dani...@gmail.com on 7 Jun 2011 at 3:05

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed for LinearGradientFillTextureSourceDecorator and 
RadialGradientFillTextureSourceDecorator.

Changeset: 
http://code.google.com/p/andengine/source/detail?r=f3041b7cff1d27bd76b93f88ce8db
b52c9ca050f

Original comment by NicolasG...@gmail.com on 9 Jun 2011 at 4:49