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?
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-height / 4)] [ diffuse height 1 ask patches with [ height > 0 ] [ set pcolor height ] ] ask patches with [ height > 1 ] [ set pcolor white ] end