|
Vertical Pattern |
Posted by EBS on Jan-20-2012 17:32 |
|
The demos show c.patternColor(new int[]{0xb0b0f0, 0xe0e0ff}, 2) which creates a horizontal line pattern of the two colours. Is there a way to create a vertical pattern in the same way without using a external image?
Thanks |
Re: Vertical Pattern |
Posted by Peter Kwan on Jan-20-2012 23:58 |
|
Hi EBS,
Yes. Please use c.patternColor(new int[]{0xb0b0f0, 0xe0e0ff}, 1).
The image contains 2 pixels of colors {0xb0b0f0, 0xe0e0ff}. The second parameter is the height of the image, which in the above code is set to 1. So the width must be 2. Using this image as wallpaper would result in vertical strips.
Hope this can help.
Regards
Peter Kwan |
Re: Vertical Pattern |
Posted by EBS on Jan-21-2012 05:01 |
|
Thank you for the quick response. |
|