generated from PaulRBerg/foundry-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add background variants and blob layers (#7)
- Loading branch information
1 parent
3928052
commit db23d86
Showing
4 changed files
with
76 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
// SPDX-License-Identifier: GNU GPLv3 | ||
pragma solidity 0.8.23; | ||
import { LibString } from "solmate/utils/LibString.sol"; | ||
|
||
contract Blush { | ||
function blush() internal pure returns (string memory) { | ||
using LibString for uint256; | ||
|
||
function blush(uint256 layerId) internal pure returns (string memory) { | ||
return string.concat( | ||
'<circle id="circle-blush" r="6" fill="rgba(255,255,255,0.4)" />', | ||
'<animateMotion href="#circle-blush" dur="30s" begin="0s" ', | ||
'fill="freeze" repeatCount="indefinite" rotate="auto-reverse" ', | ||
'><mpath href="#1" /></animateMotion>' | ||
'><mpath href="#', | ||
layerId.toString(), | ||
'" /></animateMotion>' | ||
); | ||
} | ||
} |