Creating a random shape (blob) of a given area in NetLogo
问题 Is it possible to create random shapes (see below for example) of a given area in NetLogo? 回答1: A first stab at Seth's suggestion #1. It creates a neat visual too! patches-own [ height ] to blobbify clear-all repeat (ceiling 2 * (ln (world-height * world-width))) [ ask patch (round (random (world-width / 2)) - world-width / 4) (round (random (world-height / 2)) - world-height / 4) [ set height world-width * world-height ] ] while [ count patches with [ height > 1 ] < (world-width * world