HOME | DD

Published: 2009-05-16 04:00:23 +0000 UTC; Views: 3349; Favourites: 18; Downloads: 40
Redirect to original
Description
UPDATE 3:Black color added! This means you can erase based on a rule of your choice, and then re-run a different rule; repeating this can create some amazing patterns.
See this.
UPDATE 2:
Added the ability to choose colors! And by that I mean, you can use different colors on the same canvas, for some even more trippy stuff.
UPDATE:
Fixed the bug in which simulation would get messed up when it exceeds the boundaries.
Red = reset
white = run
I have now added the ability to define your own rules in a menu. Click the boxes below each set of three (these represent the possible pixel combinations of the three pixels that can be above any given pixel, and whether they output a white or a black pixel. By default they are all black, so you must change some). Press the white button to run. To open the menu again, press the little menu tab. You can also move it about, to complete a proper interface. The simulation pauses while your mouse hovers over the menu, allowing you to change the recursion rule in mid-simulation, or upon re-calculation. Applying two or more rules to a pixel/pixels can also produce some stunning results.
Some nice presets: (b = black, w = white)
bwbbwbbb = serpinski triangle
bbwwwwwb = chaotic right triangles
bwwbwbwb = chaotic triangles and tubes
bwwbbwwb = sideways squashed serpinski triangle
(there are 256 different rules possible).
If you find more goodies, post them!
Related content
Comments: 31
Billy-X85 [2017-08-22 13:55:54 +0000 UTC]
This is interesting! Cant get much cool to come out tho
👍: 0 ⏩: 0
ShnitzelKiller In reply to weirdmindofesh [2010-01-17 06:17:29 +0000 UTC]
Make sure to click on the background to set a starting point.
👍: 0 ⏩: 1
weirdmindofesh In reply to ShnitzelKiller [2010-01-17 07:54:10 +0000 UTC]
I did. It didn't seem to do anything.
👍: 0 ⏩: 1
ShnitzelKiller In reply to weirdmindofesh [2010-01-17 22:52:44 +0000 UTC]
wat?
1. Click on background to create a white/red/blue/green dot.
2. Make sure to toggle some of the black square buttons to define a ruleset (or the rule will be that nothing is generated regardless of squares in previous row).
3. Click run.
👍: 0 ⏩: 1
weirdmindofesh In reply to ShnitzelKiller [2010-01-18 01:54:43 +0000 UTC]
still can't get it to work. What toggles, nothing responses to any click, not even the color thing works.
👍: 0 ⏩: 1
ShnitzelKiller In reply to weirdmindofesh [2010-02-24 05:38:27 +0000 UTC]
Are you using internet explorer?
👍: 0 ⏩: 1
ShnitzelKiller In reply to weirdmindofesh [2010-03-01 04:15:05 +0000 UTC]
The only reason I can think of is that you don't have the latest flash player installed, because it works fine for me.
👍: 0 ⏩: 2
weirdmindofesh In reply to ShnitzelKiller [2010-03-01 06:34:14 +0000 UTC]
Had not set any switches yet... oops
👍: 0 ⏩: 0
kram1032 [2009-11-16 21:47:06 +0000 UTC]
bwbwwwwb first gives a white triangel and then, if you set a point on the correct position inside that white triangle, it changes to sierpinsky
👍: 0 ⏩: 1
ShnitzelKiller In reply to kram1032 [2009-11-17 00:19:04 +0000 UTC]
Cool find! Looks nice with separate colors.
👍: 0 ⏩: 1
kram1032 In reply to ShnitzelKiller [2009-11-17 13:54:53 +0000 UTC]
I tried to get the seperate colors working but I guess, I did something wrong^^
I only could use a single color at one time and the colour I chose lateron just overwrote the rest ^^
Nice prog
👍: 0 ⏩: 1
ShnitzelKiller In reply to kram1032 [2009-11-20 07:41:46 +0000 UTC]
They only overwrite the pixels that would normally be filled if there was nothing there according to whatever rule you use. So unless you change the rule, it'll just overwrite the color completely.
👍: 0 ⏩: 1
kram1032 [2009-11-16 21:43:13 +0000 UTC]
bwbwwwbb is nice
produces kinda 3D-orthographic pyramids
👍: 0 ⏩: 0
psykopath [2009-05-18 05:20:06 +0000 UTC]
Alright, last comment:
45 = WWBWBBWB
99 = WBBWWWBB
73 = WBWWBWWB
182 = BWBBWBBW
BUT this renders them differently to the examples shown here [link] They look pretty close sometimes, or after a certain step; maybe you need to swap white with black, or account for edge conditions beter (it seems strange on the right edge). I have a similar work in my gallery if you feel like checking it.
👍: 0 ⏩: 2
ShnitzelKiller In reply to psykopath [2009-06-15 01:56:14 +0000 UTC]
Ooh, I've fixed the bug now. It's completely functional and the boundaries no longer mess up the simulation
👍: 0 ⏩: 1
psykopath In reply to ShnitzelKiller [2009-06-15 02:13:42 +0000 UTC]
Nice How about scrolling?
👍: 0 ⏩: 1
ShnitzelKiller In reply to psykopath [2009-06-15 04:18:38 +0000 UTC]
I'm sure that should be easy enough. There is a BitmapData.scroll() function for that very purpose.
(btw, I hardly used it before, does it wrap around or not?)
👍: 0 ⏩: 1
ShnitzelKiller In reply to psykopath [2009-05-19 00:12:25 +0000 UTC]
I have checked some rules, and they seem to work flawlessly. But yes, the edges are the only problem, because it conseders the pixels there to be a fixed color rather than extending the calculation offscreen. And I've seen yours, pretty cool. The method of choosing rules differs.
👍: 0 ⏩: 0
psykopath [2009-05-18 04:52:12 +0000 UTC]
Ah, I figured out the delay thing, it's because you cycle down from the top and it takes a few seconds to reach my dots Sorry for the triple-comment
👍: 0 ⏩: 1
ShnitzelKiller In reply to psykopath [2009-05-18 05:14:27 +0000 UTC]
Any further delay would be caused by hovering over the rule menu (I did that so you could take time to change rules in mid-simulation).
👍: 0 ⏩: 0
psykopath [2009-05-18 04:48:29 +0000 UTC]
Okay, I realised I was supposed to click somewhere on the black _before_ clicking run
Why is there a delay before each dot begins?
I'm sure it recreates them faithfully, I'm just too lazy to convert numbers to binary to test with your menu If you could be bothered, 45, 99, 73, and 182 look pretty cool.
👍: 0 ⏩: 1
ShnitzelKiller In reply to psykopath [2009-05-18 05:15:34 +0000 UTC]
You don't have to, I have the book
👍: 0 ⏩: 0
psykopath [2009-05-18 04:40:29 +0000 UTC]
*sigh* I'm sure I'm totally missing something here, but I just can't get it to do anything. The whole thing just stays black and no amount of random turning things on and off and resetting will do anything
👍: 0 ⏩: 0