Last active
February 11, 2025 13:15
-
-
Save hyunbinseo/c6ccd9db17f18f979657711e153b4d13 to your computer and use it in GitHub Desktop.
SVG sprite based repeating cubes
This file contains hidden or 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
| <svg xmlns="http://www.w3.org/2000/svg" width="40" height="270"> | |
| <symbol id="cube" viewBox="0 0 58 58"> | |
| <path style="fill:#8ec63f" d="M29 58 3 45V13l26 13z" /> | |
| <path style="fill:#6daf27" d="m29 58 26-13V13L29 26z" /> | |
| <path style="fill:#4d9a10" d="M3 13 28 0l27 13-26 13z" /> | |
| </symbol> | |
| <use href="#cube" x="0" y="230" width="40" height="40" /> | |
| <use href="#cube" x="0" y="207" width="40" height="40" /> | |
| <use href="#cube" x="0" y="184" width="40" height="40" /> | |
| <use href="#cube" x="0" y="161" width="40" height="40" /> | |
| <use href="#cube" x="0" y="138" width="40" height="40" /> | |
| <use href="#cube" x="0" y="115" width="40" height="40" /> | |
| <use href="#cube" x="0" y=" 92" width="40" height="40" /> | |
| <use href="#cube" x="0" y=" 69" width="40" height="40" /> | |
| <use href="#cube" x="0" y=" 46" width="40" height="40" /> | |
| <use href="#cube" x="0" y=" 23" width="40" height="40" /> | |
| <use href="#cube" x="0" y=" 0" width="40" height="40" /> | |
| </svg> |
For the SVG to work in PowerPoint, use transform instead of y
- <use href="#cube" x="0" y="230" width="40" height="40" />
+ <use href="#cube" transform="translate(0,230)" width="40" height="40" />
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SVG to PNG conversion:
https://quickpic.t3.gg/svg-to-png