Observer

diffuse variable percentage

Parameters:
variable String patch variable to diffuse
percentage Number percentage of patch variable's value to diffuse

Description:
Makes each patch give 1/8 of percentage of variable to each neighboring patch.
percentage should be expressed as a number between 0 and 1. variable should be a patch variable.

Examples:
diffuse food 20 causes each patch to give 1/8 of 20 percent of the variable food to each of its eight neighboring patches.

Notes:
diffuse must be run by the observer, even though it affects patches.

Related Commands:
diffuse4 nsum nsum4