A simple pattern generator
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 4013
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
A simple pattern generator
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.
Kind regards
Bernd
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.
Kind regards
Bernd
- Attachments
-
- patternBuilding_0_0_7.livecode 2.zip
- (154.06 KiB) Downloaded 177 times
-
- Livecode Opensource Backer
- Posts: 9443
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: A simple pattern generator
Very nice, but won't do for my kilt!
-
-
-
- VIP Livecode Opensource Backer
- Posts: 4013
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: A simple pattern generator
How utterly true...
But you could still sing "My Heart is in the Highlands, my Heart is not here"
-
- Livecode Opensource Backer
- Posts: 9443
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: A simple pattern generator
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 7255
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: A simple pattern generator
For that you need a dog.richmond62 wrote: ↑Thu Dec 16, 2021 1:01 pmYour stack is very good re the weft of the material, but it does not do much
for the woof.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 4013
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: A simple pattern generator
The dog:jacque wrote: ↑Thu Dec 16, 2021 6:16 pmFor that you need a dog.richmond62 wrote: ↑Thu Dec 16, 2021 1:01 pmYour stack is very good re the weft of the material, but it does not do much
for the woof.
Kind regards
Bernd
-
- VIP Livecode Opensource Backer
- Posts: 7255
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: A simple pattern generator
Clarus! I miss you, Clarus.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: A simple pattern generator
Ah the epic dogcow… I miss those times!
Re: A simple pattern generator
Yep, no dog, but a dogcow!
I have a better (more pixelated) photo of it.
I have a better (more pixelated) photo of it.
-
- VIP Livecode Opensource Backer
- Posts: 4013
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: A simple pattern generator
OK, you asked for it...
Clarus taught me a lot of tricks in LIvecode:
How Clarus can evolve from just a couple of pixels
How Clarus can make somersaults and make his typical moof
From the official Technotes
http://www.macfreek.nl/humour/tn31.html
even that he can morph into a 3-D space
(Code for pseudo 3-D from Michael Kristensen (MicMac)
So I owe Clarus a lot
Kind regards
Bernd
Clarus taught me a lot of tricks in LIvecode:
How Clarus can evolve from just a couple of pixels
How Clarus can make somersaults and make his typical moof
From the official Technotes
http://www.macfreek.nl/humour/tn31.html
even that he can morph into a 3-D space
(Code for pseudo 3-D from Michael Kristensen (MicMac)
So I owe Clarus a lot
Kind regards
Bernd
-
- VIP Livecode Opensource Backer
- Posts: 7255
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: A simple pattern generator
Too cool! Love the fake 3D.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: A simple pattern generator
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?
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?
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
Re: A simple pattern generator
Mark,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.
Here's a cheat using a group of three graphics.
Jim Lambert
- Attachments
-
- TriangleBlend.livecode.zip
- (1.06 KiB) Downloaded 136 times
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: A simple pattern generator
Thanks, Jim. That's pretty much what I'm aiming for, or something like
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.
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.
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
Re: A simple pattern generator
That's a bit much for LC, for sure.Dealing with 18000 polygons
Maybe try javascript in a browser widget