- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Tue, 03 Dec 2019 15:23:19 +0100
- To: public-xformsusers@w3.org
I have a use-case. A matrix, where cells have a relationship with neighbouring cells. The new value for a cell repeatedly gets calculated on the basis of its current neighbours. For instance, the game of life. Each cell is either populated or not. If an unpopulated cell has three populated neighbours, it becomes populated. If a populated cell has more than 3 or less than 2 populated neighbours it becomes unpopulated. This happens in generations: you don't want to replace the value of a cell with its new value until its neighbours have calculated their new value. So how would we do that? I think the simplest way would be to catch a refresh event to set a value that says the next generation can start. (I think that this is a reason why the refresh event shouldn't be deprecated after all). Other ideas? Steven
Received on Tuesday, 3 December 2019 14:23:24 UTC