Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-random-pattern
#7
(12-23-2023, 06:04 AM)Blighty Wrote: Tim made a similar one that was posted on the old Gimp Learn.

It was designed to make Truchet patterns.

I claim much better performance. On a 45x20 pattern (the balls) laid out in a 20x20 grid: Tin's script takes 28 seconds, while mine takes less than two. The way it is written Tin's script loops on each item of the final image, so its execution time is proportional to the total number of copied tiles. By contrast my script uses a bucket-fill, so its run time is mostly proportional to the number of source tiles.

Also, abides to selection, and works on current layer & image. Choose wisely Big Grin

PS: Just uploaded a new versions that fixes the randomness problem.
Reply


Messages In This Thread
ofn-random-pattern - by Ofnuts - 12-22-2023, 06:06 PM
RE: ofn-random-pattern - by Tas_mania - 12-22-2023, 10:32 PM
RE: ofn-random-pattern - by Ofnuts - 12-22-2023, 10:53 PM
RE: ofn-random-pattern - by Tas_mania - 12-23-2023, 02:08 AM
RE: ofn-random-pattern - by PixLab - 12-23-2023, 02:39 AM
RE: ofn-random-pattern - by Blighty - 12-23-2023, 06:04 AM
RE: ofn-random-pattern - by Ofnuts - 12-23-2023, 09:28 AM
RE: ofn-random-pattern - by Ofnuts - 12-23-2023, 01:58 PM
RE: ofn-random-pattern - by PixLab - 12-23-2023, 04:06 PM
RE: ofn-random-pattern - by Ofnuts - 12-23-2023, 04:58 PM
RE: ofn-random-pattern - by PixLab - 12-24-2023, 04:48 AM
RE: ofn-random-pattern - by Krikor - 12-23-2023, 07:02 PM
RE: ofn-random-pattern - by PixLab - 12-24-2023, 03:13 AM
RE: ofn-random-pattern - by Ofnuts - 12-24-2023, 08:56 AM
RE: ofn-random-pattern - by PixLab - 12-25-2023, 05:59 AM
RE: ofn-random-pattern - by teapot - 12-27-2023, 05:04 AM
RE: ofn-random-pattern - by Ofnuts - 12-27-2023, 08:58 AM

Forum Jump: