Forum > Graphics

RegEx Patterns: Fractals

(1/3) > >>

Boleeman:
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:
Some more presets

Boleeman:
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:
Now this gives a new dimension to regexes!  :)

Boleeman:
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)

Navigation

[0] Message Index

[#] Next page

Go to full version