↑Top
Blog
Various
About me

Pixel fun - messing with turtles

Just messing with “turtles” a little. The buttons activate different ones. Query values(in address bar) can set parameters. Some examples below the image. The turtles only interact via pixels.

If cnts is zero, it should be finished.(low cpu then)

cnts: - acts_cnt: - step_i: - N/A

reset
stop previous
Max concurrent

No script enabled, if this is your default setting; wise choice! Can either turn it on, or here are some pics

Examples that are variants with parameters set in the url.

Obviously it isn’t very polished. A more proper version would generate interfaces for parameters, allow arbitrary parameters each different turtle, be clearer about what does what, and not require refreshing.

The interface is pretty simple. You register named_patterns.yourname with a value {params:{..}, setup:function(params) ...}. And reg(newturtle, [n]) registers a turtle. newturtle.fun is the function(data,params), called once. To continue a turtle, re-register it. n allows registering further in the future.

k = i_of_xy(x,y) gets the index of a position, pix[k], pix[k+1], pix[k+2] are RGB values.

If you want to mess around, either just play with the browser, or Here is the source on github.

Update: added spiral_n_fun, further updates will be synced to this page.

Update (10-1-2017): due to changes this broke, should now be fixed.

Blog Posts

2021-07-17 Type Stack Calculation project intro
2020-08-26 Camcorder planet viewing
2020-05-15 I Made a Sha256 based port knocking program
2017-12-26 Probably kindah like a Snowflake simulation
2017-10-29 More Pixel fun turtles
2016-09-22 Pixel fun - messing with turtles
2016-05-17 Finally put together page_html
2015-11-12 libre decentralized software
2015-02-03 Tinfoilchat inspired ideas
2015-01-07 Public goods and business models
2014-12-22 Captcha Quicky
2014-12-12 Assurance contract mention
2014-11-21 Publishing DAO, and its holy grail
2014-11-02 Grudge escrow contract
2014-09-11 The core Blockchain idea
2014-06-03 Hanging blocks
2014-05-29 Voting power needed for DAO/DO decisions
2014-05-17 What is Ethereum to people?
2014-05-08 Just show up anytime jobs
2014-05-08 Proof of Reserve and voting
2014-05-08 DHTs: more than just storage