The Formula is the "heart" of the carpet generator. She sets the look of the carpet, the pattern itself. Not all formulas that came to my mind are collected here. In the future I will add more. I also plan to create a formula constructor.
! Formula Fnex mask* works only with option |random|. In this case, the carpet is formed on the basis of random values, then the array-mask of matches "Fnex mask*" is formed on top of the array of these values. And the carpet pattern already based on this mask.
! Also, if the switch is ON the mask * under the option "random". The Fnex mask is calculated based on the current array in memory. And you can generate a new mask, based of previous mask and so on...