misc: Profile SVG - new Headwear added and some things fixed

Co-authored-by: Alan <donosonaumczuk@gmail.com>
This commit is contained in:
vicnaum
2023-11-29 23:04:03 +01:00
parent be25b3456e
commit 1a21d9cce4
25 changed files with 875 additions and 122 deletions

View File

@@ -94,6 +94,20 @@ contract ProfileSVGGen is Test {
);
}
}
for (uint8 c = 0; c <= uint8(type(Skin.SkinColors).max) + 1; c++) {
uint256 seed = setVariant(uint8(Face.FaceVariants.BABY), Helpers.ComponentBytes.FACE) +
setColor(c, Helpers.ComponentBytes.SKIN);
string memory result = profileNFT.tryWithSeed(seed, c == uint8(Skin.SkinColors.GOLD));
vm.writeFile(string.concat(dir, 'faces/face_baby_', vm.toString(c), '.svg'), result);
}
for (uint8 c = 0; c <= uint8(type(Skin.SkinColors).max) + 1; c++) {
uint256 seed = setVariant(uint8(Face.FaceVariants.VAMP), Helpers.ComponentBytes.FACE) +
setColor(c, Helpers.ComponentBytes.SKIN);
string memory result = profileNFT.tryWithSeed(seed, c == uint8(Skin.SkinColors.GOLD));
vm.writeFile(string.concat(dir, 'faces/face_vamp_', vm.toString(c), '.svg'), result);
}
}
function testHandsAndBody() public {