Pattern Generator Utility

A place for you to show off what you have made with LiveCode

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Hutchboy
Posts: 108
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Pattern Generator Utility

Post by Hutchboy » Wed Apr 02, 2025 3:21 am

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
Attachments
MyGiantBrain Pattern Generator NoLibrary.livecode.zip
(28.94 KiB) Downloaded 138 times
MGB Pattern Generator.png
Last edited by Hutchboy on Thu Apr 03, 2025 12:49 am, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Pattern Generator Utility

Post by richmond62 » Wed Apr 02, 2025 8:44 am

This is obviously very clever, but I am struggling to find a use-case for the resulting tiles.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Pattern Generator Utility

Post by richmond62 » Wed Apr 02, 2025 11:05 am

Well, perhaps not so . . .
-
Screenshot 2025-04-02 at 19.32.18.png
Attachments
Patternator.livecode.zip
Stack.
(4.34 KiB) Downloaded 93 times

Post Reply