Page 1 of 2

A simple pattern generator

Posted: Wed Dec 15, 2021 9:47 pm
by bn
I am just looking at old stuff and maybe someone finds some use of the techniques to build up imageData in LC faster.
The way imageData is built in LC it is often a time consuming process. In certain cases one can speed up that process if it is repetitive like for some patterns.
That is the main point of this stack.

Apart from that you can generate fishbone patterns for your wardrobe, give the pattern to a weaver and then give the fabric to your taylor...

Click on all buttons and watch the times.

a pattern.png

Kind regards
Bernd

Re: A simple pattern generator

Posted: Thu Dec 16, 2021 11:58 am
by richmond62
Very nice, but won't do for my kilt!
-
McIntoshHunting.png

Re: A simple pattern generator

Posted: Thu Dec 16, 2021 12:53 pm
by bn
richmond62 wrote:
Thu Dec 16, 2021 11:58 am
Very nice, but won't do for my kilt!
How utterly true...
But you could still sing "My Heart is in the Highlands, my Heart is not here"

Re: A simple pattern generator

Posted: Thu Dec 16, 2021 1:01 pm
by richmond62
Indeed.

Or I could work on a proper Plaid generator to pop out Jacquard Cards.

Your stack is very good re the weft of the material, but it does not do much
for the woof.

Re: A simple pattern generator

Posted: Thu Dec 16, 2021 6:16 pm
by jacque
richmond62 wrote:
Thu Dec 16, 2021 1:01 pm
Your stack is very good re the weft of the material, but it does not do much
for the woof.
For that you need a dog.

Re: A simple pattern generator

Posted: Thu Dec 16, 2021 7:03 pm
by bn
jacque wrote:
Thu Dec 16, 2021 6:16 pm
richmond62 wrote:
Thu Dec 16, 2021 1:01 pm
Your stack is very good re the weft of the material, but it does not do much
for the woof.
For that you need a dog.
The dog:
clarus.jpg
clarus.jpg (17.06 KiB) Viewed 8928 times


Kind regards
Bernd

Re: A simple pattern generator

Posted: Fri Dec 17, 2021 12:03 am
by jacque
Clarus! I miss you, Clarus. :)

Re: A simple pattern generator

Posted: Fri Dec 17, 2021 9:23 am
by stam
Ah the epic dogcow… I miss those times!

Re: A simple pattern generator

Posted: Fri Dec 17, 2021 10:49 am
by Klaus
Yep, no dog, but a dogcow!
I have a better (more pixelated) photo of it. :-)
clarus.gif
clarus.gif (3.09 KiB) Viewed 8829 times

Re: A simple pattern generator

Posted: Fri Dec 17, 2021 11:18 am
by bn
OK, you asked for it...

Clarus taught me a lot of tricks in LIvecode:

How Clarus can evolve from just a couple of pixels
Clarus get Up.livecode.zip
(23.75 KiB) Downloaded 199 times


How Clarus can make somersaults and make his typical moof
Clarus-TheDogCow.livecode 3.zip
(35.22 KiB) Downloaded 193 times
From the official Technotes
http://www.macfreek.nl/humour/tn31.html




even that he can morph into a 3-D space
Fake3D Clarus-Turn_0_9bn.livecode.zip
(7.29 KiB) Downloaded 195 times
(Code for pseudo 3-D from Michael Kristensen (MicMac)

So I owe Clarus a lot

Kind regards
Bernd

Re: A simple pattern generator

Posted: Sat Dec 18, 2021 9:49 pm
by jacque
Too cool! Love the fake 3D.

Re: A simple pattern generator

Posted: Fri Mar 11, 2022 4:37 am
by mwieder
Speaking of patterns...

I'm trying to do some blender-style diffusion patterns.
I'd like, for instance, to have a triangle with red, green, and blue vertices and have a complex color gradient across the face of the graphic.
I'm guessing LC isn't up to the task since I haven't been able to come up with a way to specify a fillgradient for more than two points not in a line.
Any ideas?

Re: A simple pattern generator

Posted: Fri Mar 11, 2022 7:23 pm
by jiml
I'd like, for instance, to have a triangle with red, green, and blue vertices and have a complex color gradient across the face of the graphic.
Mark,

Here's a cheat using a group of three graphics.

Jim Lambert

Re: A simple pattern generator

Posted: Fri Mar 11, 2022 7:59 pm
by mwieder
Thanks, Jim. That's pretty much what I'm aiming for, or something like
octa-ply.png
But the thought of tripling the number of polygons I'm dealing with is a deal-breaker.
For a moderately complex graphic with 6000 faces, LC is already too slow for real-time manipulation. Dealing with 18000 polygons just isn't going to work out.

Re: A simple pattern generator

Posted: Fri Mar 11, 2022 10:23 pm
by jiml
Dealing with 18000 polygons
That's a bit much for LC, for sure.
Maybe try javascript in a browser widget