zlacker

[return to "The Sierpinski triangle page to end most Sierpinski triangle pages"]
1. vander+bk[view] [source] 2013-10-08 19:47:06
>>pr_fan+(OP)
A few years ago, I accidentally found this way of creating a Sierpinski Gasket-like structure:

https://vimeo.com/7690310

Lines "flow" from left to right (horizontally) or bottom to top (vertically), and all lines start out white. When two lines cross, they might switch color depending on which color they come across, as follows:

* white (h) + white (v) = black (h) + black (v)

* black (h) + black (v) = black (h) + black (v)

* white (h) + black (v) = white (h) + white (v)

* black (h) + white (v) = white (h) + white (v)

◧◩
2. simcop+9E[view] [source] 2013-10-08 23:42:43
>>vander+bk
What you've got there is a truth table for the XOR bitwise operation.

    HV | O
    ---+---
    11 | 0
    00 | 0
    10 | 1
    01 | 1
You can do it very similarly with the coordinates of the pixels on the screen[1]. It's really interesting how often that shape comes out of places. Which is why I think that this page got started.

[1] http://www.stilldreamer.com/mathematics/sierpinskis_triangle...

◧◩◪
3. FreeFu+zo1[view] [source] 2013-10-09 14:38:52
>>simcop+9E
Note that where binary operations on screen coordinates tend to produce Sierpiński's triangle, ternary operations will produce Sierpiński's carpet (I don't know what happens as you increase bases beyond that, the number of possible operations does explode).
[go to top]