RegEx Patterns: Fractals lazarus / 39-Graphics ---------------------------------------------------------------------- Boleeman · 2024-09-24 17:50 Make some Nice Patterns from Regular Expressions (some are deviated Fractals and some are not). The patterns seem to be XOR deviations of fractal patterns. The sizes of the images seem unusually small (I think the patterns are made of only a few colours but placed in intricate positions) Got the idea from the attached JavaScript Anyhow. Enjoy my little creation. ---------------------------------------------------------------------- Boleeman · 2024-09-24 20:16 Some more presets ---------------------------------------------------------------------- Boleeman · 2024-09-25 04:25 and  ... 104 Presets for 104 Patterns Download the "testsave4.txt" and copy into the program folder and load it. Then click on a Listbox Row enrty. Getting Modulo Fractal (in the 1st attached png notice how there is another blue pattern in the background) Getting 3D Contrasting Type Illusion (2nd attached png) Getting Colorful XOR Patterns (3rd attached png) ---------------------------------------------------------------------- circular · 2024-09-25 09:22 Now this gives a new dimension to regexes! ---------------------------------------------------------------------- Boleeman · 2024-09-26 04:25 Now ... 238 presets to play around with. (attached below as presets testsave5.txt ) Yes, Circular these patterns seem to be XOR deviations of fractal patterns. I've seen something like this happen in a Vb6 program that I made that XORs and also in my Blade pattern that I made in Vb6 (in which I mixed XORing with Lines in a Plane). In the vb6 program only red, green or blue was set, whereas in the Lazarus RegX program multiple colors are present. I have been noticing a few more things with the RegX patterns: Changing a 1 to a 3 alters the direction of the striped pattern. (the striped pattern also seems to be formed by splitting colors into wavelengths) Also the addition of a dot in a certain position after the question mark alters the width of the stripes. (..*?...)([1.4]+)(..p*) very thin vertical stripes (..*?..)([14]+)(..p*)  wider vertical stripes (..*?.)([1.4]+)(..p*)  even wider vertical stripes To make horizontal stripes: (..*?...)([3.4]+)(..p*) very thin horizontal stripes (..*?..)([3.4]+)(..p*)  wider horizontal stripes (..*?.)([3.4]+)(..p*)  even wider horizontal stripes Changing the number of dots and their position alters: The frequency of the pattern The colour of the pattern The size of the black squares The intensity of the color. Look at the attached png files to see what I mean. Lastly the sizes of the images seem unusually small (I think the patterns are made of only a few colours but placed in intricate positions) ---------------------------------------------------------------------- Boleeman · 2024-10-06 03:44 151 New Presets. ---------------------------------------------------------------------- Boleeman · 2024-10-19 02:54 I have found almost 500 new patterns. Has anyone found any nice patterns? Attached below are six of my latest favorite patterns: ---------------------------------------------------------------------- TRon · 2024-10-19 10:35 I like these examples Boleeman. They remind me of a website that imo has many similarity to your adventures with Lazarus and which was named DelphiForFun (I believe a copy of that website is now listed here). It had/has many examples of math sometimes stuffed into a graphical representation thereby informing the reader of 2 important things, e.g. how to program something with Delphi and how to understand the math/mechanics behind it and visualize it. You have now made so many interesting examples that these are imo a worthy competitors/successors to those examples listed at that website. Keep up the good work and have fun ! ---------------------------------------------------------------------- carl_caulkett · 2024-10-19 11:34 @Boleeman! You should get in touch with Transport for London (TFL) because these patterns really remind me of the moquettes used for underground seat cushions https://www.ltmuseum.co.uk/collections/stories/design/history-moquette ---------------------------------------------------------------------- Boleeman · 2024-10-30 08:54 Made a new Variation Version Now you can: Alter the depth of recursion (low depth blocky/pixelated curves and high depth has very fine curves) Set the Back Colour and Curve Colour Use a Colouring function with varied effects based on colour brightness/darkness Use any square pixel size canvas Still would like to try to make that gradient rendered version using hamming distance. Perhaps one day will work it out. Meanwhile please enjoy this Variation Version of the RegEx Fractal Renderer. ---------------------------------------------------------------------- lainz · 2025-01-10 19:49 Do you have a website with a collection of all your programs? Make one today, it's free at github