Hi,
[ Note: I updated the attached pattern generator stack so you can save the generated images. This makes it much easier to import into a new image library (in the Development menu) should you want to use them in that way.]
The attached Pattern Generator allows you to create 32 x 32 and 64 x 64 pixel images with different pattern styles and includes an option to create images with transparency. I have embedded core handlers from the Minimum Drawing Library (see Games) so this does not require the library to operate. I am releasing it as open source under the MIT license
This utility will help create pattern libraries that can be used with graphic objects. To use, generate images then, in edit mode, copy the patterns you want to your own stack. Get the id of the new pattern image you copied to your stack and assign it as the id of the backgroundPattern of the graphic object you wish to fill with the pattern.
-Mike
Pattern Generator Utility
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Pattern Generator Utility
- Attachments
-
- MyGiantBrain Pattern Generator NoLibrary.livecode.zip
- (28.94 KiB) Downloaded 137 times
Last edited by Hutchboy on Thu Apr 03, 2025 12:49 am, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 10077
- Joined: Fri Feb 19, 2010 10:17 am
Re: Pattern Generator Utility
This is obviously very clever, but I am struggling to find a use-case for the resulting tiles.
-
- Livecode Opensource Backer
- Posts: 10077
- Joined: Fri Feb 19, 2010 10:17 am
Re: Pattern Generator Utility
Well, perhaps not so . . .
-
-
- Attachments
-
- Patternator.livecode.zip
- Stack.
- (4.34 KiB) Downloaded 92 times