forked from danx0r/BusyBoxes
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
rules should be objects with properties such as rule.do_gen(), rule.num_states etc
bbRule.js:
bbRule = {}
bbRule.do_gen = function(grid, x, y, z, frm) {...}
bbRule.num_states = 2;
bbRule.color_odd_p1 = 0xff0000;
bbRule.color_odd_n1 = 0xffff00;
bbRule.color_even_p1 = 0x0000ff;
bbRule.color_even_n1 = 0x00ffff;
index.js:
rule = bbRule;
if (state==1 && phase % 2 == 1) color = rule.color_odd_p1;
Metadata
Metadata
Assignees
Labels
No labels