'How to count the number of possible combinations of pictures when generating NFT?
I drew a picture in Photoshop in which each individual object is on a separate layer. All layers are grouped into groups (by the principle of interchangeability. Each group has the same pictures, they differ only in color). And all the layers were exported into folders (with the same names as the layer groups in Photoshop).
I have a JS script that overlays images on top of each other and thus generates a new image. It takes one random picture from each folder; and each subsequent picture superimposes on the previous one. But in this script you need to specify how many pictures you need to get in the end.
And I want to calculate: how many unique pictures can be generated if there are only 3 folders; the first one has 5 pictures, the second one has 3 pictures, the third one has 4 pictures?
P.S. Screenshot from Photoshop for clarity: [1]: https://i.stack.imgur.com/xR8z4.png
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
