Copy link to clipboard
Copied
Could an Illustrator script like RandomSwatchesFill be modified to apply colors in such a way that no two colors from a group of swatches would be repeated in shapes that immediately border each other? I don't think this is truly random, but it's meant to make the distribution of colors feel more varied.
From what I've seen online, this would be an application of the four color theorem — or whatever number of colors are involved. For my own purposes, I would typically have more colors in a group of swatches — at least five or more.
Appreciate any insights and guidance!
Copy link to clipboard
Copied
Could an Illustrator script like RandomSwatchesFill be modified to apply colors in such a way that no two colors from a group of swatches would be repeated in shapes that immediately border each other? I don't think this is truly random, but it's meant to make the distribution of colors feel more varied.
From what I've seen online, this would be an application of the four color theorem — or whatever number of colors are involved. For my own purposes, I would typically have more colors in a group of swatches — at least five or more.
Appreciate any insights and guidance!
Copy link to clipboard
Copied
Firstly, you'll need to define what "adjacent" means in terms of path items in Illustrator.
Copy link to clipboard
Copied
By adjacent, I mean shapes that immediately border each other. In my case, the simplest example might be a checkerboard-like grid where colors are assigned so that no squares that border each other are colored the same. Thanks.
Copy link to clipboard
Copied
It could be done using an adjacency matrix, but this requires knowledge of graph theory, which unfortunately I do not presently possess.